I have a set of main categories for a set of products. All these products has additional taxonomies associated with them.
On a product category page, is there a way I can get all terms in use for that particular category?
I believe it can be done by looping through all products, but that seems a bit convolutedâ¦
You probaby want
get_terms()
.WordPress keeps a
count
of the number of posts that use a taxonomy and you can filter your query using it: