Tell us what you are trying to do?
Hi, I'm currently using Toolset to show a custom layout for the WooCommerce products. Part of that is to show the attributes for the shown product. Currently the link shown for the attribute is like this: hidden link (for the attribute Destination and the value of Botswana) but ideally I'd like the url returned so can load the filtered shop url showing the selected attribute, in this case it would be hidden link
Hi Nigel
In the custom archive page I'm using for the products archive it displays the attribute as a link in the following format hidden link
This currently goes nowhere as it doesn't have an archive page.
Instead of that like I'd like them to instead display to a filtered list on the product archive so something like this hidden link
This would be the same for a few other attributes that I will have on each product so if there was a way to rewrite the link url and replace "?taxonomy=pa_" with "plan-your-trip/?filter_" it should then function as required.
In the WordPress Archive, add a custom search form, filter by taxonomy "pa_destination", setup the URL parameters as "filter_destination", see our document: https://toolset.com/course-lesson/creating-a-custom-search/
So when you pass the URL parameter "pa_destination" to shop page, it will filter the results by URL parameter
Hi Luo
Thanks for that, I'm already using Toolset to use a custom template for the shop archive. Its was really just a question of if there was a way to amend the link thats currently coming from the fields and text block thats being used to show the associated attributes so that rather than it going to a separate taxonomy page it went back to a filtered list on the shop page. The filter is already in place by loading the link its just amending the called url that I'm trying to get round currently.
2) Dashboard-> Toolset-> Views, Create a taxonomy view:
- Query pa_destination taxonomy terms
- Filter by:
Taxonomy is set by the current post
- In view's loop, setup the term link manually with HTML codes, for example: