The Events Calendar
Improvement: enable the [more-tag] for excerpts (4 posts)

  1. zigo_webdesign
    Posted 4 years ago #

    Right now the event-list only shows the manually added excerpts.
    If an event has no manually added excerpt, the event-list shows the complete content.

    WordPress also allows to add a "more-tag" to the content of a post/event, which marks a line between the excerpt and the rest of the content.

    To enable this functionality in The Events Calendar,
    change the following in /views/list.php (lines 39-43)

    <?php if (has_excerpt ()): ?>
      <?php the_excerpt(); ?>
    <?php else: ?>
      <?php the_content(); ?>
    <?php endif; ?>


    <?php the_excerpt(); ?>

    This is because when there is no manually added excerpt, the has_excerpt() method returns false and then the current code shows the complete content.
    By replacing it with the_excerpt(), the automatic excerpts work also.

    Best regards and thanks for a great plugin.


  2. Rob La Gatta
    Modern Tribe Support
    Plugin Author

    Posted 4 years ago #

    Thanks! We actually had the more tag functional in an earlier build, but it got broken for the 2.0 release. We're working to get that fixes for a 2.0.1 patch very soon :)

  3. rvlawrence
    Posted 4 years ago #

    Yes I would like to see this as well. The standard "more tag" is needed so the plugin can play nice with membership plugins like Wishlist Member, S2Member and WPMU DEV Member which all use the more-tag to restrict access to content.

  4. Rob La Gatta
    Modern Tribe Support
    Plugin Author

    Posted 4 years ago #

    It's fixed...just awaiting release in 2.0.1 at this point :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • The Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic