Taxonomy Breadcrumbs

Forums › Forums › Search & Filter Pro › Taxonomy Breadcrumbs

Viewing 5 posts – 1 through 5 (of 5 total)
  • Anonymous
    #146550

    Hi!

    Can the results page show a “Filtered By” and then the relevant taxonomies that were selected to show the results?

    Trevor
    #146577

    It IS possible. It will be very much easier in V3 of our plugin, which we are currently coding for release next year.

    For now you would have to do some coding, and that would involve editing the PHP template file used for your results page. Which file that is depends on the Display results method you choose to use in our form settings.

    This thread from last year (the hidden posts are not relevant) discusses the same thing:

    https://support.searchandfilter.com/forums/topic/how-to-style-the-search-data/page/2/

    This post (not the thread, just the post) shows you how to look at the array of search filter values being used:

    https://support.searchandfilter.com/forums/topic/how-do-i-get-the-form-fieldvalues/

    Anonymous
    #147704

    Hello! That worked perfectly, just a bit of styling to do – thank you so much, and sorry for the delay, busy week 🙂

    Anonymous
    #147706

    For clarity, this is what I used:

    global $searchandfilter;
    $sf_current_query = $searchandfilter->get(339)->current_query()->get_array();
    foreach($sf_current_query as $key) {
      echo '<div>' . $key['active_terms'][0]['name'] . '</div>';
    }
    Trevor
    #147769

    Cool. Thanks for sharing. I will close this thread for now.

Viewing 5 posts – 1 through 5 (of 5 total)
Search & Filter Support
Privacy Overview

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.