Querying by multiple taxonomies
-
Hello, I am developing a custom theme for a client but I ran into some difficulties. I have created custom post type “Products”, and this CTP has several hierarchical taxonomies -> Product type (shampoos, conditioners, etc.) and product series (fall 2014, winter 2014, etc.). I want to create product showcase page that arranges the products in the following order (masonry view) :
Shampoos:
Shampoo from “Fall 2014”, Shampoo from “Winter 2014” etc. (each series has only one shampoo)Conditioners:
Conditioner from “Fall 2014”, Conditioner from “Winter 2014” etc. http://domain.com/products/conditionersOr similar page to display for the “Fall 2014” Series:
Conditioner after that shampoo etc.The idea is to display this grid of products when someone enters to http://domain.com/products/Fall-2014
I have registered the CPT, registered the hierarchical taxonomies, set the correct terms to each product. I am not sure that I am able to create the taxonomy-product.php page to work in this manner, so may be I have to create page template and assign it to a page.
I am not quite sure that I gave the best explanation of the situation but I am completely lost. Also is even possible to display the contents with something like a “foreach” loop
products > foreach parent-term as parent > foreach child-term as child > display posts ?
The topic ‘Querying by multiple taxonomies’ is closed to new replies.