So OK....I might be way of but here goes. Im using a plugin that gives the post a Featured Image if its not set. So Im trying to make it that depending on in which category the post is in the Featured Image should correspond to the category.
So this is the code om trying to mend.
<?php get_the_image( array( 'meta_key' => 'feature_img', 'size' => 'medium', 'width' => '300', 'height' => '170', 'image_class' => 'feature', 'default_image' => 'http://www...../uploads/img_cat_' . $category->cat_ID . '.jpg' ) ); ?>
Its the " ' . $category->cat_ID . ' " code Im not sure about .
I want the JPG displayed img_cat_4.jpg if the post belongs to Cat nr 4 etc.