• 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&region&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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • I don’t see that problem. The url is https://mafw.org/test-calendar

    Here’s the shortcode I used:

    [events_calendar long_events=1 full=0 show_search=1 has_search=1 categories=316 scope=future views=calendar,list,grid]
    Thread Starter simonc17

    (@simonc17)

    Nice one! This does work. However, take out the views=calendar, grid, list and it breaks after the filter when you go to the next month. I didn’t have the views bit as I just wanted the user to have a calendar view only which is the default.

    Thread Starter simonc17

    (@simonc17)

    Do you know the text I need to put into views= for grouped lists please? I’ve tried everything and it doesn’t appear.

    Thanks

    Plugin Author Marcus

    (@msykes)

    Hello, try wrapping it in quotes, views=”…”

    Thread Starter simonc17

    (@simonc17)

    Hi.

    I have views=”list, grid, calendar” but I don’t know what the entry is for grouped lists.

    Thanks.

    If you do put quotes around the views list, make sure they are straight quotes and not curly quotes: https://typographyforlawyers.com/straight-and-curly-quotes.html

    Sometimes people will copy and paste and end up with curly quotes.

    Use list-grouped for grouped lists.

    views="calendar,list,list-grouped,grid"
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Search bar above calendar not working’ is closed to new replies.