Support

Home Forums Event Espresso Premium Event over multiple days not disappearing from website

Event over multiple days not disappearing from website

Posted: March 28, 2022 at 7:38 am

Viewing 3 reply threads


Anthony Irtelli

March 28, 2022 at 7:38 am

Hi

We sometimes have events that run over multiple days. When the event starts we want it removed from the website because people are unable to book.

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

However, it doesn’t seem to be working anymore.

You can see an example at https://bht-training.org.uk/courses/

Kind regards

Mark


Tony

  • Support Staff

March 28, 2022 at 9:09 am

Hi Mark,

I assume it’s for this event: https://bht-training.org.uk/events/equality-diversity-inclusion-16/

It looks like the ‘Standard’ ticket on that event has a ‘Sell Until’ date of 2022-05-12T13:30:00, is that correct?

If so, it means the ticket is not expired and will prevent the snippet from filtering out that event. If you change the sell until date of the ticket on the event to be today and it should remove that event from view.


Anthony Irtelli

March 29, 2022 at 2:58 am

Ah, so simple. Thank you for you help.

BTW I have read that some people have problems with facetwp. I have discovered that https://searchandfilter.com/ works with EventEspresso. There is a free version and I can’t remember if this works or not.

Thanks again

Mark


Tony

  • Support Staff

March 29, 2022 at 3:47 am

Ah, so simple. Thank you for you help.

It’s only simple when you know what EE defines as an ‘expired’ ticket 😉

BTW I have read that some people have problems with facetwp. I have discovered that https://searchandfilter.com/ works with EventEspresso. There is a free version and I can’t remember if this works or not.

That’s great! Thank you for the recommendation, I’ll check it out and may start pointing people towards it if it helps.

Any further issues/questions/recommendations just let us know 🙂

Viewing 3 reply threads

The support post ‘Event over multiple days not disappearing from website’ 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