Support

Home Forums Event Espresso Premium Two had event shouldn't be displaying on the second day

Two had event shouldn't be displaying on the second day

Posted: January 25, 2023 at 8:09 am

Viewing 3 reply threads


SCIP

January 25, 2023 at 8:09 am

Hi

I am running a course which spans two days. People can only purchase a ticket for both days. However, after the first day has finished the event is still showing.

Do you know if there is a way to hide the event for the second day to avoid confusions.

I have a live example https://bht-training.org.uk/events/equality-diversity-inclusion-19/ but all the tickets have been sold.

Many thanks

Mark


Tony

  • Support Staff

January 25, 2023 at 10:58 am

Hi there,

We have a filter you can use to remove events that have all of their tickets expired, which is available 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 your site, we have some documentation on creating one here:

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


SCIP

January 26, 2023 at 6:11 am

I think the link should be:

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

However, thank you. It did the trick!

Kind regards

Mark


Tony

  • Support Staff

January 26, 2023 at 7:33 am

My apologies, yes, that’s the correct link and I’ve now fixed it in my reply above.

I’m glad it worked for you.

Any further questions just let us know.

Viewing 3 reply threads

The support post ‘Two had event shouldn't be displaying on the second day’ 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