I would like to display expired events in a category below the upcoming events on the same page. I would like the ability to use this on multiple pages with multiple categories.
The snippet here only allows me to use show_expired true on specific pages but also disables the ability to show upcoming events on that page.
I’ve tried the plugin here but it throws up a fatal error for line 5 of the shortcode-template.php: Uncaught Error: Call to a member function have_posts() on null
Is there anyway to achieve current and exoired events on the same page using spereate shortcodes?
We don’t have a shortcode built into Event Espresso to pull only expired events, but the shortcode plugin Josh provided is working for me.
I’ve tried the plugin here but it throws up a fatal error for line 5 of the shortcode-template.php: Uncaught Error: Call to a member function have_posts() on null
How are you calling that template? Using all of the code Josh provided and just with [espresso_past_events] on the page?
You’re most welcome, I’m glad you have it working.
Viewing 3 reply threads
The support post ‘Show expired events on same page as current events’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.