Support

Home Forums Event Espresso Premium filter event list to hide events with closed registration?

filter event list to hide events with closed registration?

Posted: October 18, 2014 at 5:10 am

Viewing 2 reply threads


rcfc

October 18, 2014 at 5:10 am

Is there a way to filter the event list to exclude events that are closed to registration, even though the event might still be in the future?

I’ve seen some discussion of this from back in the old EE3 days…. And even mention of a master setting that would control this

Also, make sure that in Event Espresso>General settings, the “Events expire on registration end date?” is set to yes. Then check the events for

In any case, I don’t see that setting in EE4, and I’d prefer to do it selectively as a shortcode filter argument.

Incidentally, if there’s a way to do this, please tell me if it applies to both [ESPRESSO_EVENTS] and [EVENT_LIST], or only the latter.

Thanks,
josh


Josh

  • Support Staff

October 20, 2014 at 12:30 pm

Hi Josh,

It turns out that there is a template tag that returns an array of available tickets for each ticket that’s still for sale. This can be used in the loop to make the event list only display events that have tickets still for sale.

There is some example code that makes use of this tag here:

https://gist.github.com/joshfeck/6e7c2ad6b80387f442d7


rcfc

October 30, 2014 at 1:43 pm

Hey dude, thanks for this. I haven’t had a chance to play with it, but it looks like exactly what I’m looking for. I’ll report back in a couple days.

Viewing 2 reply threads

The support post ‘filter event list to hide events with closed registration?’ 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