Search bar above calendar not working
-
I have a calendar displayed using the following shortcode:
[events_calendar has_search=”1″ show_search=”1″ scope=”all”]
The search bar above the calendar does not work in the same way as the search bar displayed using the shortcode [event_search_form].
If the advanced fields are set to display inline and the fields are hidden by default, clicking on the filter icon does nothing – no fields are displayed. If the fields are set to display by default, they are not displayed. Both of these issues are not present in the search form search bar.
If I perform a search the calendar is filtered but the display of the calendar is different to the calendar displayed using the search form – the date shown above the calendar changes from June 2023 to 2023-06 and the word Today between the next/previous month controls is missing. If I move forward one month, the entire calendar styling breaks with large next/previous buttons and no calendar whatsoever. The URL is also wrong, with wp-admin/admin-ajax.php?id=322959807&scope[0]=2023-05-28&scope[1]=2023-07-01&orderby[0]=event_start&pagination=1&search=harpforharpfordd&geo&near&town&state&country®ion&ajaxCalendar=1&mo=7&yr=2023 appended after the domain part of the site url. Neither of these happen with the calendar displayed using the search form.
Essentially the search bar displayed above the calendar using the calendar shortcode is useless. I can’t display the search form for users, I need to display a calendar and then allow them to filter events using categories and tags but this is simply impossible.
- The topic ‘Search bar above calendar not working’ is closed to new replies.