Support

Home Forums Event Espresso Premium Exclude past events from search auto-suggestion?

Exclude past events from search auto-suggestion?

Posted: December 11, 2014 at 12:45 pm

Viewing 1 reply thread


Stephanie Mandel

December 11, 2014 at 12:45 pm

On EE3 and WP4 – is there a way to exclude events that are in the past from the search results / autosuggest? Thanks!


Dean

December 12, 2014 at 5:36 am

Not with the default shortcode. However it is really easy to make a shortcode that does what you need: it’s the same shortcode but with one or two minor changes.

This is the code: http://pastebin.com/LuFbcSSV

It needs to be added to a site specific plugin:https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

It is used with [EVENT_SEARCH2] shortcode.

All the above shortcode does is add a check that the registration end date is equal to or greater than the current date, otherwise it won’t show those events.

Viewing 1 reply thread

The support post ‘Exclude past events from search auto-suggestion?’ 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