What You’ll Be CreatingUsing featured images in post archives is a common feature of themes, but sometimes you might want to use featured images a bit differently. Occasionally I’ve worked on sites where the images to be displayed relate to the category a post is in and not to the post itself.
Instead of adding the same featured image to every post in each category, it would be much simpler if I could just assign the category to each of my images, and then display the featured image for the category with the post.
Examples of when you might want to do this include:
when each post is each associated with a brand and you want to display the logo
In this tutorial I’ll be using some of the techniques I’ve already demonstrated in two earlier tutorials.