Support

Home Forums Event Espresso Premium Hide events in archive after start date

Hide events in archive after start date

Posted: September 2, 2020 at 7:05 pm


Jeff Phillips

September 2, 2020 at 7:05 pm

Hello,

We have several events that span several months. Once an event has passed it’s start date, it is effectively “expired” to us for all practical purposes. It is important for us to retain the use of “Event End” dates as they are relevant to our users, but we need for events that are past the “Event Start” date to no longer appear in our archives.

Is there a way that I can make it so that events past the “Event Start” date no longer appear in our archives?

Thank you


Tony

  • Support Staff

September 3, 2020 at 12:26 pm

Hi there,

Just to confirm, by archives you mean on the front end?

If so you can use this snippet:

https://gist.github.com/joshfeck/646d496e72942b5251d484d522d762ee


Jeff Phillips

September 3, 2020 at 12:37 pm

Tony,

Yes, that was exactly what I was looking for. I added this to my child theme’s functions.php and it’s working exactly as desired.

Thanks for your help!


Tony

  • Support Staff

September 3, 2020 at 12:42 pm

You’re most welcome.

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 2 weeks, 6 days ago ago

Topic Tags

Notifications

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