Search/filter bar with default list view
-
I have used the shortcode ([event_search_form show_advanced=”1″ search_geo=”0″]) to create a search/filter bar on my events page. However it won’t show any events unless it has been interacted with, the page is empty on load apart from the search bar.
I tried using the following ([events_calendar long_events=1 full=1 show_search=1 has_search=1 views=calendar,list,grid,list-grouped scope=”future” search_geo=”0″]) and that has created an calendar view which interacts well, however we want a default list view.
I tried adapting it to the following ([events_list show_search=1 has_search=1 has_views=list,grid,list-grouped,calendar scope=”future” search_geo=”0″ pagination=”1″]) which shows all the information, however the search bar does not interact with the list.
Can anyone point me in the right direction? Thanks.
-
This topic was modified 1 year ago by
slmc17.
-
This topic was modified 1 year ago by
-
Add view=list to make the default view a list.
[events_calendar long_events=1 full=1 show_search=1 has_search=1 views=calendar,list,grid,list-grouped view=list scope=future search_geo=0]I added that and I’m afraid it hasn’t changed the default view from calendar.
Interesting, it worked for me.
I’m wondering if it’s either the initial [events_calendar that’s affecting it. It’s being applied to the page using a shortcode element in Breakdance. This hasn’t affected other sites but maybe it’s causing a problem here?
Ideally what I’d like is a search bar with an initial list view which will interact with the search bar. At the moment I can’t seem to achieve that with any of the shortcodes I’ve found so far.
It’s working for them in their demo pages: https://eventsmanager.site/events/. This is exactly what I want on my site.
Thanks, the new update appears to have fixed this.
The topic ‘Search/filter bar with default list view’ is closed to new replies.