Home Forums Event Espresso Premium How to not show expired dates on event pages

How to not show expired dates on event pages

Posted: June 1, 2020 at 6:01 pm


June 1, 2020 at 6:01 pm

In my event Template settings I have “Display Expired Events” setting to No.
When I have upcoming dates for my event, expired events don’t show, however when the dates are all past, they page then shows ALL the expired dates.
But in this case i want it to show no dates

Here you can see all events are past, so its showing ALL the old ones. As new dates are always being added I can’t remove the page from the site as its just waiting for new dates to be scheduled


  • Support Staff

June 2, 2020 at 8:08 am

Hi there,

To do this you’ll need to alter the template used by Event Espresso.

Go to \wp-content\plugins\event-espresso-core-reg\public\Espresso_Arabica_2014\

Copy the content-espresso_events-datetimes.php template to your machine.

Open that up and change

espresso_list_of_event_dates( $post->ID );

To be:

espresso_list_of_event_dates( $post->ID, '', '', true, false );

Now place that altered template in your themes root directory, if you are not currently using a child theme I recommend creating one:

With the above change, if no datetimes are available it will display:

There are no upcoming dates for this event.

That can also be changed if needed.

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 1 month, 1 week ago ago

Topic Tags


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