Forums › Forums › Search & Filter Pro › get selected value and show on page?
Tagged: V3
- This topic has 3 replies, 2 voices, and was last updated 5 years, 4 months ago by Trevor.
-
Trevor(Private) July 1, 2019 at 8:43 am #215288
I am not sure if this is what you want. To show the filters, as I said, this requires custom coding when using the current version of Search & Filter Pro. You can access the filter terms though, but would need further PHP work to display them. To fetch the search terms, the
https://searchandfilter.com/documentation/accessing-search-data/
guide is basic but you can extend the idea to fetch other filter terms/data. If you have other filters, then it becomes a little more complex, but I can give you links. 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+field+%5Bvalue%5D/
Note, if you are using Ajax refreshing of the results, any PHP needs to be inside the Ajax Container, or it will not update.
Anonymous(Private) July 2, 2019 at 9:04 pm #215491Sorry, I need more support.
For example. URL:
XXXXXXXXXXXXXXXX/wordpress/?sfid=154&_sft_manufacturer=malibu&_sft_year=2017&_sft_engine_type=inboard&_sft_engine_model=all-efi-modelshow can i get those selected value (malibu,2017,inboard,efi) and show on a page?
Thanks.
Trevor(Private) July 3, 2019 at 10:49 am #215517It requires custom PHP coding to be added to your theme template file. The links I gave in my previous reply would reveal previous posts that have some code examples in, but you may need a third party coder/freelancer to code this for you. It is a feature we plan to add in the V3 release cycle, but the release of V3 is many months away yet (no fixed ETA).
-
AuthorPosts