I have multiple categories let's call them Group1 (imp1, imp2, imp3) and group2 (cat1, cat2, cat3, cat4).
My posts are in one from the first group of categories and in multiple categories from the second group.
I want to show a small icon in the corner of the post thumbnail if the post is from
imp1, or show another icon if the post is from
imp2 and so on.