If I set an event to ‘postponed’, it still gets listed with the old date. Is there a Shortcode parameter like show_postponed=false or show_only_active=true or show_upcoming=true? Or how could I suppress listing postponed events?
We don’t have a shortcode to suppress postponed event from the listings, however it should be possible via a filter.
You’ve mentioned shortcodes and we have many different outputs within EE, do may I ask which shortcode/output are you looking to remove the above events from?
I’m not sure if I understand your response.
I use [ESPRESSO_EVENTS_TABLE_TEMPLATE show_all_datetimes=true category_filter=false]
What sort of filter do you mean?
Ok, so that’s the table view template and we don’t have a hook we can use to filter those events.
To remove those events you’ll need to add some code to the template users to output the table. If I recall correctly you may already be using a custom template from within your theme’s root directory, is that correct?
check for a espresso-events-table-template.template.php file within the theme.
If not, pull the default template from /wp-content/plugins/eea-events-table-template/templates/
Place a copy in your themes root directory around line 74 you should have something like:
if ( $event instanceof EE_Event ) {
Just after that line add:
if ( $event->is_postponed() ) {
continue;
}
That will skip any postponed events on the table view template.
Viewing 3 reply threads
The support post ‘Don't display postponed events; or only display active 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.