Specific featured image for each category
<?php if(has_post_thumbnail()) the_post_thumbnail(‘themolio-featured-image’); else echo wp_get_attachment_image($attachment_id, ‘themolio-featured-image’); ?> The above code displays the featured image if the post has one, otherwise the image define by $attachment_id. I don’t know how you’re deciding which category term should display which image & what to do in case of multiple categories, so the part where you initialize $attachment_id … Read more