Support

Home Forums Event Espresso Premium Hide Started Events in Table Template

Hide Started Events in Table Template

Posted: February 2, 2017 at 10:52 am

Viewing 1 reply thread


TinyTechs

February 2, 2017 at 10:52 am

Hi,

We are using the table template and want to show all events that have not yet started, including sold out events so people can join the waiting list. Once the event has started we want to hide them, because they are taking up space, and no one can register for them anyway. Is this possible? show_expired=false seems to only hide the events that have not yet ended.


Josh

  • Support Staff

February 2, 2017 at 1:01 pm

Hi there,

You can use the code form this code snippet library example:

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

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

What that will do is set the events to not display if it’s past the ticket sale end date.

Viewing 1 reply thread

The support post ‘Hide Started Events in Table Template’ 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