Creating a custom event search filter
WP Event Manager’s [Events] shortcode will show a search filter on top. if you want to add a custom filter in the top section you can add it via hook or overriding via template files.
It is possible to add new filters to the search form by adding a field and then modifying the search queries using filters.
1. Open your child theme,
2. Add the code into the funtions.php file.
Here is an example field:- https://wp-eventmanager.com/knowledge...
3. Save Changes.
4. Create a new field in the field editor(WP-Admin click on Event Manager click on Field Editor).
5. The field created should be with the meta key value( _event_country).
6. The placeholder should contain the same value, as provided in the code( de | in | us).
7. Save changes.
8. Link your Events with the country and finally, you can filter them on the frontend.
For More information - https://wp-eventmanager.com/knowledge...
Get Free Core WP Event Manager Plugin - https://wp-eventmanager.com/product/w...
More info about WP Event Manager: https://wp-eventmanager.com
Connect with us: WP Event Manager Channel: / @wpeventmanager
🙋♂️ Have a question? Leave a comment below and I’ll do my best to respond.
Facebook: / wpeventmanager
Twitter: / wp_eventmanager
Linkedin: / wp-event-manager
Github: https://github.com/wpeventmanager/wp-...