Get posts that matches specific terms of multiple custom taxonomies.
-
I’m working on a page that show a lot of products. My structure is
Product (custom post type)
–>Brand (custom taxonomy)
——>Brand A (custom term)
——>Brand B (custom term)
–>Department (custom taxonomy).
——>Department A (custom term)
——>Department B (custom term)Each product always has to have one brand AND one department. However, there may be a few products in each brand.
So, I need to do a list that shows me the all the products that matches both a specific brand AND a specific department, and also that let me print the name of the brand. i.e: In department A we have 3 products that matches Brand A.
Is there any way to do it? I’m able to filter either one a brand or a department, but not both at the same time.
Thanks!
- The topic ‘Get posts that matches specific terms of multiple custom taxonomies.’ is closed to new replies.