• Resolved wordpressrmc

    (@wordpressrmc)


    How do I allow past events to continue to show on the page? Currently, once they occur, they are no longer displayed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Jaime

    (@jaimemarchwinski)

    Hi @wordpressrmc

    Thanks for reaching out!

    If you’d like to have past events and upcoming events on the same page, that will require some additional customization on your part.

    The best way to show past events with upcoming events is to create a?template override?of the template you are using and create a custom query using the?tribe_get_events()?function. The function works a lot like the WordPress?get_posts()?function, so you could use something like this:
    <?php
    global $post;
    $all_events = tribe_get_events(array(
    ‘eventDisplay’ => ‘all’,
    ‘posts_per_page’ => 10,
    )); ?>

    Another option is to use add a filter to your theme’s?functions.php?file that adds past events to your list of upcoming events. That solution is outlined?in this thread.

    I hope that helps!

    Thanks,
    Jaime

    Plugin Support Jaime

    (@jaimemarchwinski)

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display Older Events’ is closed to new replies.