Hello,
We’ve setup a blog within our site where posts belong to one or many of a series of categories.
We want to display different icons within the post depending on the categories the post belongs to.
Using the {categories} tag I’m able to output the categories a post is assigned to but I can’t work out how to loop through these categories in order to display the icons.
In traditional PHP I’d hold the categories in an array and use a loop to output the corresponding icons, e.g. category 1, 4 & 5, so display icon 1, 4 & 5.
Can someone point me in the right direction on how I might achieve similar using EE syntax?
Thanks.