My site is built in such a way that every single post (in a custom post type) is accessed via a category archive (custom taxonomy). Every post may have more than one category assigned, but I want to display only the category from the archive that came previously.
Lets say post "Bob Brooks" is assigned cat apple, banana and carrot. I browse to site.com/category/carrot/ and click on the result "Bob Brooks". on site.com/bob-brooks/, I want it to show "carrot" in a subheader on the template, but not the other categories. And I obviously want it to show the correct cat dynamically.
How do I do that?