We were able (with your help, thanks) to display only one recurring event in the event list. However we still have all recurring events displaying in the search results. Is there a way please to display only one recurring event, as in the event list shortcode?
It looks like you may want to create a custom shortcode based on the [EVENT_SEARCH] shortcode to prevent the recurring events from showing up.
To do this, you will need to copy the contents of the ee_create_autocomplete_search() function (located in the wp-content/event-espresso/includes/shortcodes.php file) into a new function (something like “my_ee_create_autocomplete_search()”) in your theme-name-here/functions.php file. Then modify the query, to group the recurring events, using something like this at the very end of the query: $SQL .= " GROUP BY e.recurrence_id ";
I hope that helps. Please let us know if you have any questions.
Viewing 3 reply threads
The support post ‘display only one recurring event in 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.
Support forum for Event Espresso 3 and Event Espresso 4.