Forums Forums Search & Filter Pro Shared taxonomy issues

Tagged: 

Viewing 5 posts - 11 through 15 (of 15 total)
  • Ross Moderator
    #122535
    This reply has been marked as private.
    Ross Moderator
    #122737
    This reply has been marked as private.
    Anonymous
    #122773

    Big thanks for the assistance, Ross. Your update along with the following filter seems to be doing the trick for me:

    https://gist.github.com/dryan1144/c0b678f8a27c94ec39b8cf803f4b5093

    Do you see any issues with this approach? I filtered get_term_link using the term_link method you suggested and got the term archive links themselves to update (I’m manually creating my links to the term archives themselves so it’s not as important from that perspective to have the get_term_link output the correct URL). But using the sf_results_url actually enabled the filtering on the taxonomy term archives as expected.

    Thanks again for the above and beyond support to both of you.

    Ross Moderator
    #122843

    Hi David

    I’m glad this is working for you but I do not imagine it would cover all use cases (you might not need it to).

    What happens in S&F form, with taxonomy archives enabled is:

    — If your search form appears somewhere on the site that is not one of those archives…
    S&F will redirect when the form is submitted, to the results URL (which will the be the post type archive).

    — If your search form appears somewhere on the site that is not one of those archives… and you choose a filter in the list that is a taxonomy (with archives)…
    Then S&F uses get_term_by to build the link for that taxonomy term archive and redirect there.

    This is all with “enable filtering on taxonomy archives”.

    Now, where I think your code would work is, if you don’t have enable on tax archive enabled, and you have regular search form, that will never use get_term_by because of this setting. Then it will always use results URL and I think in that scenario it will all work fine.

    This is all fairly hypothetical though as I can’t see what your doing – hope that makes sense!

    Thanks

    Anonymous
    #122990

    This makes sense, thanks for the detailed breakdown. In my specific case the forms will only be present on the post type archive or tax term archive so I should be good it sounds like.

Viewing 5 posts - 11 through 15 (of 15 total)