- This topic has 27 replies, 2 voices, and was last updated 7 years, 5 months ago by Trevor.
-
Trevor(Private) July 26, 2017 at 11:15 am #122820
Hi
If you have a taxonomy defined. For example, in WooCommerce, it has a taxonomy called
product-category
. So a URL for the archives page might behttps://myshop.com/product-cateogry/shoes/
Where
shoes
is a term in theproduct-category
taxonomy. So, Search & Filter will try to stay within that page, using permalinks, instead of the default behavior which would be to forward the search back to the shop page.I am not sure how to better explain it. It doesn’t always work. It requires that the taxonomy only applies to one Custom Post Type.
It is available in display results methods WooCommerce and Post Type Archive for this reason.
Trevor(Private) July 26, 2017 at 12:05 pm #122847I had a look to see what Ross, the developer, has said anything in this type of request, these are his words:
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 usesget_term_by
to build the link for that taxonomy term archive and redirect there.This is all with “enable filtering on taxonomy archives”.
-
AuthorPosts