Posted: December 10, 2019 at 7:56 am
|
Is there a way for me to have expired events removed automatically? This is very important to my client as they have a ton of events and do not have a dedicated web person to go in and delete events every time they expire. |
Hi there, Do you mean from the front end or the admin? There is currently no way to automatically delete the events from within the admin but expired events can be hidden from the front end of the site if that’s the problem? |
|
|
Yes, I need them to be hidden from the front end of the site. How would I do that? |
Which view are you using? Can you link me to the page that shows the expired events? There is an option in Event Espresso -> Events -> Templates (tab at the top). Under the ‘Event List Pages’ is a ‘Display Expired Events’ option, set that to no. If that doesn’t remove the events (or is already set to no and you can still see expired events) then I need to see the page to know why 🙂 |
|
|
Here is the link: https://kingdominsuranceacademy.com/property-casualty-course/ I did remove the expired events already so you won’t see those there. Under event list pages the “display expired events” tab was already set to no, however I did notice the “display expired tickets” was set to yes so that could have been the problem. We are using ticketing for each event. Do you think that will resolve the issue? Thanks! |
No, that option removes tickets form the ticket selector rather than the event list. Your using the event table, which removes expired events by default. Can you let me know how you are defining expired events? An expired event in EE is when the datetime end date has passed. |
|
|
Oh ok. For some reason after the date/time has passed it’s not removing them automatically. I’m defining expired events as for example: There is a class on the 16-17th of December, on the 18th, I would expect that class to no longer show up on the front end. The events usually go from “upcoming” to “expired”, so if they are showing as “expired” in the admin section, I would expect they would not show on the font end. |
Hmm, yeah that’s correct and those events should be removed by default. Can you post the full shortcode you are using on the above page, please? Does it have a |
|
|
This is the shortcode that was there: [ESPRESSO_EVENTS_TABLE_TEMPLATE category_slug=pc show_expired=true] So, if I change “show_expired” to false it should remove expired ones correct? |
That’s correct. |
|
The support post ‘Automatically removing expired 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.