Forums Forums Search & Filter Pro Include/exclude taxonomy not working

Viewing 7 posts - 1 through 7 (of 7 total)
  • Trevor
    #219412

    You can only use one form per page. Maybe that is the issue you face?

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

    Anonymous
    #219470
    This reply has been marked as private.
    Trevor
    #219531
    This reply has been marked as private.
    Anonymous
    #219573
    This reply has been marked as private.
    Trevor
    #219589
    This reply has been marked as private.
    Anonymous
    #219593

    Thanks Trevor, always a pleasure 🙂
    For folks with a similar issue, what I learned is that the “include” function specifies which taxonomy terms will be added to a select list, but it does NOT pre-select any term, so the default is still “all categories.” Trevor provided a jQuery snippet which I was able to modify, which sets the select option of the age field to the value I want on that page. My version is roughly:

    <script>
    jQuery( document ).ready(function(){
     var age = 'senior';
      jQuery('select[name="_sft_ages[]"').val(age);
    });
    </script>

    And I just modify the age variable depending on which age group’s page flow I’m on. So far it’s returning the results I want, and I can see the correct age group passed in the URL.
    Thanks again Trevor!
    –Carina

    Trevor
    #219601

    Thanks for letting us know Carina. I will close this thread for now.

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