Forums › Forums › Search & Filter Pro › Display Name and Description of Active Taxonomy on Show Results
- This topic has 5 replies, 2 voices, and was last updated 4 years, 8 months ago by Trevor.
Viewing 6 posts - 1 through 6 (of 6 total)
-
Trevor(Private) March 19, 2020 at 4:26 pm #237221
You seem to have customised the results.php file, but it must have errors as it also shows ‘no results found’?
This post might help you with code for what you want:
That code is for _sft_category and the id number is wrong, so maybe this?
global $searchandfilter; $sf_current_query = $searchandfilter->get(3637)->current_query(); $sf_current_query_array = $searchandfilter->get(3637)->current_query()->get_array(); if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) { echo '<div>No category selected.</div>'; } else { echo '<div>' . $sf_current_query_array["_sft_menucats"]["active_terms"][0]["value"] . '</div>'; echo '<div>' . $sf_current_query_array["_sft_menucats"]["active_terms"][0]["id"]. '</div>'; echo '<div>' . category_description($sf_current_query_array["_sft_menucats"]["active_terms"][0]["id"]). '</div>'; }
Otherwise, are you able to send me temporary WordPress admin logins (ones you should later delete or disable) for the site so that I can look at the setup? Please use a Private Reply.
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)