Back end - Search
Here you can create search items, to filter calendars availability, and customize them to your needs. An unlimited number of of search items can be created, with different options, and used on your website.
There are a set of conditions for the calendars to be displayed in search results:
A search can be used only for days or only for hours, so if the hours are enabled, only calendars that have availability set for hours will be displayed ... if the hours are disabled, in search settings, only calendars that have availability set for days will be displayed. This will change in the future, to search both models, with the possibility to enable/disable it.
Each calendar need to have a post/page ID attached to it. This is because search results display: post featured image, excerpt (description) and the link of the page/post where the calendar is displayed.
If you create a custom posts type the post ID is attached automatically, but for calendars that are added in pages using shortcodes you need to add the post/page ID manually.
To attach the page/post ID manually to a calendar go to:
WordPress back end -> Booking System PRO -> Calendars -> Select the calendar -> Edit calendar settings
... and enter the ID in Post ID option. To find the post/page ID please read this instructions from WordPress codex.
For calendars to appear in search map you need to attach them to locations. Please view Locations documentation for more informations.
Calendars created before version 2.0.4 must have availability set again. This is because available days/hours need to be indexed for a faster search.
Create & edit an search itemClose all Open all
- Step 1 - Click the plus button to add a new search item.
After you clicked the button, the search item will appear in the list below.
- Step 1 - Select the search item from the list to display the data.
- Item 2 - Change name.
- Item 3 - Exclude calendars from search. Only calendars that have a post/page ID attached and have availability set only for hours or only for days, depending on search item settings, are displayed.
- Button 4 - Display search item data.
- Button 5 - Display search item settings.
- Button 6 - Delete search item.
Search item settingsClose all Open all
|Date type||Default value: American. Select date format: American (mm dd, yyyy) or European (dd mm yyyy).|
|Style template||Default value: default. Select styles template.|
|Filter results by price||Default value: Disabled. Enable the option to filter results by price.|
|Defaul view||Default value: List. Select the default view that the search results will first display.|
|List view||Default value: Enabled. Enable to display results in list view.|
|Grid view||Default value: Disabled. Enable to display results in grid view.|
|Map view||Default value: Disabled. Enable to display results on a google map.|
|Results per page||Default value: 10. Set the number of results to display on a page.|
|Sidebar position||Default value: Left. Set filters sidebar position: Left, Right & Top.|
|Currency||Default value: United States Dollar ($, USD). Select search default currency.|
|Currency position||Default value: Before. Select currency position.|
|First weekday||Default value: Monday. Select search first weekday.|
|Search start/end days||Default value: Enabled. Use start/end days or select only one day to filter results.|
|Search hours||Default value: Disabled. Enable hours to use them to filter results.|
|Define hours||Enter hh:mm ... add one per line.|
|Search start/end hours||Default value: Enabled. Use start/end hours or select only one hour to filter results.|
|Enable AM/PM format||Default value: Disabled. Display hours in AM/PM format. NOTE: Hours definitions still need to be in 24 hours format.|
|Filter results by no of items available||Default value: Disabled. Enable the option to filter results by the number of items available to book.|
|Minimum availability value||Default value: 1. Set minimum availability value to filter results.|
|Maximum availability value||Default value: 10. Set maximum availability value to filter results.|