WordPress.org

Support

Support » How-To and Troubleshooting » [Plugin: The Events Calendar] Using the Excerpt in Calendar listings

[Plugin: The Events Calendar] Using the Excerpt in Calendar listings

  • Hi
    I have been adding the Events Calendar to a new website I’m creating in WP. I have created a page that displays the Events List but would like to use an excerpt on this first page and then link to the full post.

    You can see the basic site here, it’s not finished yet so it may change between views but you should be able to get the idea of what I’m trying to do.

    website here

    If any could help me add the Excerpt I would be really appreciate it, cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • I would also like to use this feature. Any help with this would be MUCH appreciated. Version 1.6.3 handled the lists a lot better – giving only a brief description and a link to the post. I’ve just updated to 1.6.4 and was very disappointed to see that it no longer did that. I might look into downgrading to 1.6.3…

    The easiest way would be to use the <!–more–> tag where you want the post to cut off.

    If you want an automatically generated excerpt you’ll have to change one template file.

    First you need to have a custom version of list.php in your template folder. Copy the file from plugins/the-events-calendar/views/list.php to themes/your_theme/events/list.php

    In this copy of the list.php file find the line that says:

    <?php the_content(); ?>
    

    And replace it with:

    <?php the_excerpt(); ?>
    

    More details here:
    http://codex.wordpress.org/Function_Reference/the_excerpt

    thats great, two really good was to get it sorted, thanks I will let you know how I get on.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: The Events Calendar] Using the Excerpt in Calendar listings’ is closed to new replies.
Skip to toolbar