Hi I was wondering if it was possible to show a related view or content template in the sidebar of a custom post by category.
I have a custom post called Technical Articles. I have created a custom taxonomy for Technical Articles called Article Type. Technical Articles can be categorized as either Article type A or B (or both)
The Technical Article posts have a widget added to their sidebar through Appearance > widgets
I want to show an advert (basic HTML with a link) in the sidebar (which I thought I could maybe create using a view or custom post type) but show a different one depending on what category has been selected
So if a Technical Article has been tagged with Type A it shows advert A in the Article Post type sidebar
If a Technical has been tagged with Type B it shows advert B in the Article Post type sidebar
If a Technical Article has been tagged both type A and B it shows both adverts.
I feel like this is relatively simple to do in a view (you just need to set up the view to show which category has been selected) but what I'm less sure about is how you would do that in a sidebar as it is not part of the post)