Forums › Forums › Search & Filter Pro › Display Count of Filters Applied
- This topic has 1 reply, 2 voices, and was last updated 5 years ago by Trevor.
-
Anonymous(Private) December 25, 2019 at 2:34 am #229842
On our mobile layout, we are setting the filters to be hidden behind a toggle. The toggle, when activated will slide out a drawer with the filter options. Is there a way to call a count of filters applied? Similar to how you can echo the results count? We would like to show this next to the button when the drawer is closed, to help a user stay aware there are filters active.
Hotels.com does something smilar: https://www.hotels.com/search.do?resolved-location=CITY%3A1456744%3AUNKNOWN%3AUNKNOWN&f-amid=128&f-bed-type=1&destination-id=1456744&q-destination=New%20Orleans,%20Louisiana,%20United%20States%20of%20America&q-check-in=2019-12-25&q-check-out=2019-12-26&q-rooms=1&q-room-0-adults=1&q-room-0-children=0
if you view in mobile, you will see a number next to the filter button.
Trevor(Private) December 25, 2019 at 11:20 am #229851Not from within the plugin settings, but the currently applied filter IS accessible to PHP. You would need the help of a skilled third part PHP coder, I think.
This thread might help you:
https://support.searchandfilter.com/forums/topic/accessing-field-slug-on-search-results/
… and this search will give similar threads I think:
https://support.searchandfilter.com/forums/search/sf_current_query+get_array
Note, if you are using Ajax refreshing of the results, any PHP needs to be inside the Ajax Container, or it will not update.
Please note that we are (officially) closed for weekends, Christmas Day and New Years Day and will be operating limited hours on weekdays in between. However, I will be here when I can.
-
AuthorPosts