Forums Forums Search & Filter Pro Display Name and Description of Active Taxonomy on Show Results

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #237134

    Im changing it on your plugin files.

    Trevor
    #237154

    In the form design, which Display Results Method are you using?

    Are you able to send me a live link/URL to your search page so I can take a look?

    Anonymous
    #237166
    This reply has been marked as private.
    Trevor
    #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:

    https://support.searchandfilter.com/forums/topic/category-description-in-search-results/page/2/#post-236248

    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.

    Anonymous
    #237460
    This reply has been marked as private.
    Trevor
    #237559

    Thanks for letting me know. I will close this thread for now.

Viewing 6 posts - 1 through 6 (of 6 total)