Combine two taxonomies in a hierarchical tree
To get a list of all terms of taxonomy X whose posts are associated to terms from taxonomy Y too, we have to: Get all term IDs for both taxonomies Create a tax query to fetch all posts, because we don’t want to show empty term archives. Format the result in a hierarchical list. Let’s … Read more