Follow the steps below to recreate the exact same layout as seen on the demo.
Step 1 – Choosing the Event post type to search
Under the General Options -> Sources panel, choose the Events (event) custom post type. In the demo setup we use nothing else, but that post type.
Events Manager - Event post type selection
Step 2 (optional) – Loading the theme
Any theme will work with this tutorial – the demo example uses the Underline Blue Vertical. To load that theme, go to the Theme Options panel and choose it from the list.
Theme Selection under Ajax Search Pro
Step 3 – Filters box visibility
Under the Frontend search settings -> General panel change the following options:
Show search settings switch on the frontend? (optional) – OFF
Set the search settings to visible by default? – ON
Search settings position – Block or Custom
Column Layout – Column
Filter box visibility and layout
Step 4 – Event date filters
The Event Manager plugin stores the event dates in a datetime format in the _event_start and _event_end custom fields.
Lets make both of the date filters under the Frontend Search Settings -> Custom Fields panel. Use the screenshots below as reference on how to create them.
Events starting after filter
Events ending before filter
Step 5 – Location filter (optional + custom code)
The Event Manager plugin stores the Locations ins a custom database table, but their API is very professional, thus it is possible to use it to get the locations as well.
First, let’s make a custom field filter on the _location_id custom field, which stores the ID to the locations.
Custom field: _location_id
This will get the location IDs, but we need the titles as well on the front-end. For that, a custom code is required.
Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!
Step 6 – Event Category filter
The Event Category is a taxonomy, so it is time to create a taxonomy term filter as well. Go to the Frontend Search Settings -> Categories & Taxonomy Terms panel and choose the tribes_event – tribe_events_cat taxonomy, then drag the ‘Use all..’ option to use all of them.
Event category selection
Event category display mode
Step 7 – Date in results content
Under the Advanced Options -> Content panel, look for the Advanced Description Field option.