I am working on an event management WordPress site which has multiple taxonomies (Photographer, Event Manager, Decor, etc).
I want to create Taxonomy pages for each of these taxonomy (this is the easier part and there are ample tuts on these). In each of these custom taxonomy pages, I want to fetch all the posts falling under that taxonomy, and display the unique categories as a widget on the side.
So if I am viewing the page of a Decor partner, then all the posts with that Decor should be displayed in the loop, and outside of the loop, in the widgets area I want to display the catgories of those posts only.
Is there a query or method that I can use to make this happen?
There is long method which I am trying to avoid - where I go through the loop, for each post fetch the category and maintain the unique list that way.