Support

Home Forums Event Espresso Premium Event Table Hide Events With No Tickets On Sale

Event Table Hide Events With No Tickets On Sale

Posted: October 1, 2018 at 12:42 pm

Viewing 2 reply threads


baystate

October 1, 2018 at 12:42 pm

Hi,
I am trying to hide events that do not have tickets on sale. I used the suggestion here for Sold Out events and it worked great:
https://eventespresso.com/topic/event-table-view-hide-sold-out-events/
Is there something similar that can be done to hide upcoming events that do not yet have tickets on sale?

Thank you!


Tony

  • Support Staff

October 2, 2018 at 4:00 am

Hi there,

Just below the code from the other thread, you should be able to add something like this:

//Does the event current have tickets on sale?
if( !$event->tickets_on_sale() ) {
    continue;
}

If the event currently does not have any tickets on sale, skip the event.

Is that what you are looking for?


baystate

October 2, 2018 at 9:29 am

Hi Tony,

That’s perfect, apologies for missing that. Thank you very much!

Viewing 2 reply threads

The support post ‘Event Table Hide Events With No Tickets On Sale’ 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