Support

Home Forums Event Espresso Premium Excluding waiting list events from search results

Excluding waiting list events from search results

Posted: October 29, 2012 at 2:24 pm

Viewing 2 reply threads


onadventure

October 29, 2012 at 2:24 pm

When using the [EVENT_SEARCH] shortcode, is there a way to exclude waitlist events from the suggested results? Thinking of a parameter to pass inside the [] brackets, but i can’t seem to find any in the Event Espresso docs.

Thinking further along these lines, the search result suggestions could be configurable to include either all events, or only those with remaining seats and (if existing) their waitlist/overflow events.

Any suggestions on how to go around this are welcome – and thanks again for a great plugin ๐Ÿ™‚

Cheers,
Tue, OnAdventure.dk


Dean

October 30, 2012 at 3:24 am

Hello Tue,

Right now the search shortcode doesnt have a way of excluding the waitlist items.

I will ask the devs to implement an attributre for this in future releases, but I cannot advise if/when it will be implemented.

As a workaround you could edit the search shortcode and add this line of code to approx line 496 below a very similar line of code with D instead of S.

$sql .= " AND e.event_status != 'S' ";

That will remove the waitlisted items also.


onadventure

October 30, 2012 at 1:51 pm

Excellent workaround – works a charm. Thanks for the advice, hope to see it go into a future release at some point ๐Ÿ™‚

Best regards,
Tue

Viewing 2 reply threads

The support post ‘Excluding waiting list events from search results’ 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