How can we help?
-
Getting Started
-
Shortcodes
-
Settings
-
Event Dashboard
-
Custom Fields
-
Categories & Types
-
Widgets
-
Troubleshooting
- Dealing with problematic themes
- Enable Trace and Debug Javascript file logs
- Event listing styling and fonts problem
- Event listings not showing up in the [events] page
- Event listings throw 404 page error
- Events don’t display until RESET is pressed
- How to add my registrations on my account page
- Woocommerce cart fragment-jquery cookie problem
-
Advanced / Customisation
-
WP Event Manager Tutorials
- Add a custom field in the search form on the event dashboard
- Add custom field in Search filter
- Adding a country field for events
- Change Default Events Listing View
- Changing Login Redirects
- Changing the event slug/permalink
- Changing the priority of field for event submission form
- Create Child Theme
- Create default image path filter
- Create or pick categories from Free/ Core WP Event manager
- Create single event template with Elementor Pro
- Creating a custom event search form
- Cron Job
- Disable Any theme timepicker
- Editing Event Submission Form Fields
- Event Detail Page
- Event List with Elementor plugin
- Hide Additional Information Section from Single Event Page
- Hide and Add column from the Event Dashboard
- Hide Comment on Single Event Listing Page
- How To Add My Registrations on My Account Page
- How to allow comment forms on each event?
- How to allow organizers to add images in the description box
- How to delete an expired event by time
- How to Disable Social Media share links?
- How to display additional custom fields on a single event page?
- How to override archive template
- How To Remove Duplicate Event Type Meta Box While Using Gutenberg Editor
- How to replace default event banner placeholder image
- Importing Event Listings With WP All Import Pro
- Limit the banner Size
- List of all the default template and fields given in core and Premium Add-ons
- Multilingual Website Using WPML
- Ordering Events By Event Start Date / meta key
- Remove existing field from event submission form
- Remove the Preview Step
- Translating WP Event Manager
- Validate submit event field Snippets
- Visual Composer
- How to Download and Edit the Prebuilt Theme by WP Event Manager
- Show all articles ( 25 ) Collapse Articles
-
Add-ons
- Attendee Information
- Bookmarks
- Colors
- Contact Organizer
- Emails
- Embeddable Event Widget
- Event Alerts
- Event Calendar
- Event iCal
- Event Slider
- Event Tags
- Export Events
- Google Analytics
- Google Maps
- Google reCAPTCHA
- Mailchimp
- Organizers
- Recurring Events
- Registrations
- Sell Tickets
- Sendinblue
- Stripe Split Payment
- Woocommerce Paid Listings
- Zoom
- Mobile App
- Divi Elements
- Guest List
- Constant Contact
- Active Campaign
- HubSpot CRM Integration
- Salesforce CRM Integration
- Zoho CRM Integration
- Name Badges
- Show all articles ( 18 ) Collapse Articles
-
Add ons Tutorials
- Attendee limit on registration addon
- Change the domain of license key (license key migration )
- Editing registration form fields
- Event tag snippets
- Existing Licence Key Activation
- Exporting Registrations
- Facebook Preview
- Field restriction on the registration form without sell ticket and attendee information
- Hide/Show registration button on specific events
- How To Install WP Event Manager Add ons
- How to show Ticket Price
- Send an email notification to the organizer when a event is approved
-
Virtual Addons
-
Themes
Creating a custom event search form
Created On
Last Updated On
Print
1
15
- Main
- WP Event Manager Tutorials
- Creating a custom event search form
WP Event Manager’s [Events] shortcode is coded to pick up search_location and search_keywords variables from the query string. Because of this, it’s easy to create a search form elsewhere on your site which posts to your events page.
How to Create a custom event search form
Here is an example form:
<form method="GET" action="YOUR_EVENTS_PAGE_URL"> <p> <label for="keywords">Keywords</label> <input type="text" id="search_keywords" name="search_keywords" /> </p> <p> <label for="keywords">Location</label> <input type="text" id="search_location" name="search_location" /> </p> <p> <label for="search_category">Category</label> <select id="search_category" name="search_category"> <?php foreach ( get_event_listing_categories() as $cat ) : ?> <option value="<?php echo esc_attr( $cat->term_id ); ?>"><?php echo esc_html( $cat->name ); ?></option> <?php endforeach; ?> </select> </p> <p> <input type="submit" value="Search" /> </p> </form>
Replace YOUR_EVENTS_PAGE_URL with the URL to your events page (assuming filters are enabled) and the form will function.
Quick Links