Excerpts for Events Not really happening

I am not sure how to code it so that i get a proper exceprt to show up on my event archive page.

thanks

  • Luís

    Hi daniel shankin ,

    Hope you're doing well today!

    1) Firstly, the custom post type of Events + ("incsub_event") don't support the excerpt, so we will need to add it in the file "class-eab-taxonomies.php" located in "wp-content/plugins/events-and-bookings/lib".

    You need to edit the "$supports" array inside the "register_post_type" and add the excerpt:

    $supports = array( 'title', 'editor', 'author', 'venue', 'thumbnail', 'comments', 'excerpt');

    2) Then download the file "wp-content/plugins/events-and-bookings/default-templates/default/archive-incsub_event.php" and "get" the excerpt where you want.

    <p> <?php the_excerpt(); ?></p>

    3) Upload "archive-incsub_event.php" (previously modified) to your theme root folder, to override the default template.

    I sent attached these two files modified if you want to see the changes.

    I hope this information has been helpful. If I can help you in this or other questions, please let me know!

    Cheers, Luís

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.