How to not show past events in wordpress search results
-
Hi there,
When I do a search on my site, I wan’t to show all pages, and future events,
On my search page I made
eventorganiser_is_event_query
function return true using theeventorganiser_is_event_query
filter. After that I set theshowpastevents
query var to false. Now my problem is that because event organiser adds SQL into the ‘WHERE’ clause, if no events are found, it also stops any of my pages being found as well.I know it’s a bit of a custom problem, just thought i’d ask to see if there are any easier ideas, i’l probably end up adding the event organiser stuff to a second query after checking if any events were actually found.
Thanks – Andy
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to not show past events in wordpress search results’ is closed to new replies.