Forums › Forums › Search & Filter Pro › How can I display the selected search parameters in the results screen
- This topic has 5 replies, 2 voices, and was last updated 7 years, 3 months ago by Trevor.
Viewing 6 posts - 1 through 6 (of 6 total)
-
Anonymous(Private) August 7, 2017 at 7:14 pm #124894
How can I display the selected search parameters in the results screen?
For example, if I have a state and city search fileds, and A user chose from the options list England and london, when the results are loaded I want to add a line:
“Showing results for England, London”
Is it possible?
Thanks.
Trevor(Private) August 7, 2017 at 8:11 pm #124896If you read through this thread, it is almost the same subject, and so the resources and links given will apply:
https://support.searchandfilter.com/forums/topic/search-results-title-in-genesis-child-theme/
Anonymous(Private) August 8, 2017 at 9:32 am #124975Hi Trevor,
Thanks for the reply, I found the solution:
global $searchandfilter; $sf_current_query = $searchandfilter->get(1274)->current_query()->get_array(); foreach($sf_current_query as $key) { echo '<span>' . $key['value'] . ' ' . $key['name'] . ' ' . $key['active_terms'][0]['name'] . ', </span>'; }
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)