Support Forums

Hey there, it looks like you've been redirected from designsandcode.com - as you can see we have a new home - read more

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Taxonomy Breadcrumbs

Viewing 5 posts - 1 through 5 (of 5 total)
  • Kathy Webber
    #146550

    Hi!

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

    Trevor Moderator
    #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/

    Kathy Webber
    #147704

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

    Kathy Webber
    #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 Moderator
    #147769

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

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

The topic ‘Taxonomy Breadcrumbs’ is closed to new replies.