Answer the question
In order to leave comments, you need to log in
How to display clickable product attributes?
Good day to all!.
There is a layout and according to it on the main page there are product attributes. This is the scope of the product. It is necessary that when you click on this area, a page with products that correspond to this area of \u200b\u200bapplication opens. It turned out to display all the values of this attribute, and then a stupor. Help solve the problem. Or maybe there is another approach. On the layout, these attributes are with icons.
Answer the question
In order to leave comments, you need to log in
As an option, use not attributes, but labels. Only not native woo, they will come in handy. Create a new taxonomy by tag type. You can do this with the register_taxonomy code , or you can use plugins.
Then just for each product in the loop you get a list of your connected tags using wp_get_object_terms
and display a link
. You may have to create a new page template for your new tags. Just copy the template for product_tag and rename it to match your tags.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question