Exclude past events from the main wordpress search results.
I want to exclude past events from the main wordpress search results. I found others with the same request.
Roger Lamb commented
If there's another version of this request that already has more votes, I'd gladly switch my votes to it.
This would be a very beneficial feature for us — we like being able to keep events up for a good while, sometimes a couple years (should anyone stumble on one from search or something). Unfortunately, our core search gets flooded with events that have already happened, particularly if they're recurring events. I'd love to be able to say "anything that ended before today, it's out."
I suspect there's a filter specific to ECP where I could add that "where/and" clause myself. Any tips at least?
Roger Politis commented
If this is implemented it should definitely be through an option or a hook, since I NEED to search in past events, and as currently the Events Calendar search won't do it I absolutely need the WP search to work for this.
Brett Ludwig commented
Any word on whether this will be implemented? The search for recurring events is definitely a bug, as it shows all recurring events out of order on the WordPress search.