Support

Home Forums Event Espresso Premium Automatically removing expired events

Automatically removing expired events

Posted: December 10, 2019 at 7:56 am


kkaye1982

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.


Tony

  • Support Staff

December 10, 2019 at 1:48 pm

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?


kkaye1982

December 10, 2019 at 1:50 pm

Yes, I need them to be hidden from the front end of the site. How would I do that?


Tony

  • Support Staff

December 11, 2019 at 1:49 am

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 🙂


kkaye1982

December 11, 2019 at 6:45 am

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!


Tony

  • Support Staff

December 11, 2019 at 8:35 am

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.


kkaye1982

December 11, 2019 at 8:44 am

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.


Tony

  • Support Staff

December 11, 2019 at 9:50 am

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 show_expired attribute set on it? If so try removing it as the default value for that is false, meaning it will remove the expired events.


kkaye1982

December 13, 2019 at 11:43 am

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?


Josh

  • Support Staff

December 13, 2019 at 11:48 am

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.

Event Espresso