to show all events in a list including past ones. I want to filter out any upcoming ones as the client feels this is confusing. I followed the instructions in this thread but the upcoming events are still in the list.
I would not advise to use a do_shortcode() in the main query of a custom post type archive template like that. That will break many of your site’s views.
What you could do instead is a one-off custom page template, and use the provided code from the other topic, from this gist:
Please note there’s a conditional that you’ll need to adjust, this one:
if ( is_page( 'past-events-page' ) ) {
So you’ll change past-events-page to match your past events page’s page slug.
Viewing 2 reply threads
The support post ‘Show only Expired Events / Not upcoming ones’ 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.