- This topic has 1 reply, 2 voices, and was last updated 4 years, 10 months ago by .
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Display Count of Filters Applied
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.
Not 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.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy