• I have two categories (our work and news) and only one single.php
    If looking at a single post in the news category then I want to show the thumbnail too so have inserted:
    <?php if ( has_post_thumbnail() ) {the_post_thumbnail('medium');} ?><br />

    But I dont want this to appear if viewing a single post within the our work category, what can I add to remove this for category ID#2?

  • The topic ‘Post thumbnail dependant on category’ is closed to new replies.