WordPress.org

Forums

Events Made Easy
[resolved] Events page not listing past events (5 posts)

  1. artgrrl
    Member
    Posted 2 years ago #

    Because I have my "Events" page template selected as my "Events Page" in the Events Made Easy options, shortcodes aren't working as noted. Unfortunately I can't figure out how to show all events (past and future) without using a shortcode.

    I've also tried using the

    <?php eme_get_events_list("limit=5&scope=all&order=DESC"); ?>

    template tag on my Events page template, and while this does work, clicking a specific link returns a full listing of the five most events, not just the details for the one chosen event. See that issue here: http://koolhofearth.org/dev/news-and-events/events/

    Is my Events page template being used for both the full events listing and the single event? If that's the case, how do I specify a different template for my single event?

    http://wordpress.org/extend/plugins/events-made-easy/

  2. Franky
    Member
    Plugin Author

    Posted 2 years ago #

    The format for single events need to be changed inside the EME settings.
    If you want to detect wether you're on a "single event", you can use the EME function eme_is_single_event_page(), see eme_functions.php for this.

  3. artgrrl
    Member
    Posted 2 years ago #

    Changing the single events format doesn't have any effect on my single event. My theme is currently using "page-events.php" for what seems to be both the main events listing and the single event listing since they both use the same "events" slug. This is the code in question from the page-events.php file:

    <div class="events-list">
       <?php eme_get_events_list("limit=5&scope=all&order=DESC"); ?>
    </div>

    I'm guessing the template is just using that code on both the full listing and single event pages no matter what my settings say?

    If that's the case, how do I use the eme_is_single_event_page() you mention? I found it in the functions file but I'm not sure how to implement it into the template. Sorry, kind of clueless when it comes to PHP! Is it some kind of "if / else" statement?

  4. Franky
    Member
    Plugin Author

    Posted 2 years ago #

    If you're no PHP coder, stick to the shortcodes, they are there to help you.

  5. artgrrl
    Member
    Posted 2 years ago #

    Well, as I wrote in my first post, because I have my "Events" page template selected as my "Events Page" in the EME settings, shortcodes aren't working (as noted by the plugin). I can't figure out how to show all events (past and future) without using a shortcode. Any other thoughts? Thanks for your patience and help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Made Easy
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic