Support

Home Forums Event Espresso Premium multi-day events still display after first day has completed

multi-day events still display after first day has completed

Posted: February 4, 2021 at 3:29 am


Anthony Irtelli

February 4, 2021 at 3:29 am

We are offering courses, some of which run over multiple days. When you book the course you book for all the days.

I am displaying these events using [ESPRESSO_EVENTS]

However, the course still shows when the first day has completed.

Is there a way to hide the event after the first day?

An example course is https://bht-training.org.uk/events/coaching-skills-for-managers/

Many thanks

Mark


Tony

  • Support Staff

February 4, 2021 at 6:03 am

Hi Mark,

Do you set the tickets to expire on the first day? The reason I ask is if your tickets expire on that first day and not at the end of the course (based on the fact that users purchase all days, I’m assuming they do) then you can use this snippet:

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

Which removes the events from view once the tickets on that event are all expired.

Will that work for you?

Add that to a custom functions plugin on the site, we have documentation on creating one here:

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


Anthony Irtelli

February 4, 2021 at 9:20 am

Thank you, this is exactly what I needed.


Tony

  • Support Staff

February 4, 2021 at 9:42 am

You’re most welcome.

The support post ‘multi-day events still display after first day has completed’ 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