Home Forums Event Espresso Premium Don't display postponed events; or only display active events

Don't display postponed events; or only display active events

Posted: May 30, 2020 at 2:58 am


May 30, 2020 at 2:58 am

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?


  • Support Staff

June 1, 2020 at 7:33 am

Hi there,

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?


June 3, 2020 at 3:48 am

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?


  • Support Staff

June 3, 2020 at 8:27 am

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() ) {

That will skip any postponed events on the table view template.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 3 months, 3 weeks ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!