Get categories within specific term


I have a WooCommerce shop, where I’d like to show every possible product category, where the products have a specific attribute (term). Say I have a product attribute called: “Designer”, then I wish to find all the categories where products have attribute Designer => “Nike”.

So essentially the output would be:

Nike categories:

  • Shoes
  • Hats
  • Pants

Any pointers in the right direction where I can solve this?

, , , , FooBar 2 years 2019-12-25T04:27:27-05:00 0 Answers 92 views 0

Leave an answer