WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
Using the Excerpt in Calendar listings (4 posts)

  1. wates
    Member
    Posted 3 years ago #

    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

  2. peregrinatrix
    Member
    Posted 3 years ago #

    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...

  3. monodistortion
    Member
    Posted 3 years ago #

    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

  4. wates
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic