Support

Home Forums Event Espresso Premium Event Grid Showing Events That Have Passed

Event Grid Showing Events That Have Passed

Posted: October 30, 2020 at 12:51 am


ltdan

October 30, 2020 at 12:51 am

I have some training classes and they meet over a few weeks so I have the beginning and end dates for the class.

The event grid is showing events where the start date has passed. I have not found anyway to have those events stop showing after the start date has pass other than finding the events and setting them to drafts. shouldn’t they auto drop off?

Is there a setting I am missing?
my short code: [ESPRESSO_EVENTS_TABLE_TEMPLATE order_by=start_date]


Tony

  • Support Staff

October 30, 2020 at 8:34 am

Hi there,

The events will display until they are ‘expired’, meaning the event end date has passed. Your events are ‘active’ as the event start date has passed, but the event end date has not and so show on the grid.

Have all of the ticket sale dates passed on those events?

The reason I ask is we have a snippet that filters out events if all of the tickets on that event have reached there ‘sell until’ date which may help here.

https://github.com/eventespresso/ee-code-snippet-library/blob/master/templates/de_ee_filter_events_out_with_expired_tickets.php

You can add that to a custom functions plugin on the site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Tony

  • Support Staff

October 30, 2020 at 8:46 am

Hmm, actually, the above snippet won’t work as is as it specifically targets the EE event/taxonomy archives.

Can you link me to the page in question so I can take a look?

The support post ‘Event Grid Showing Events That Have Passed’ 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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Tony 3 weeks, 3 days ago ago

Topic Tags

Tagged: 

Notifications

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