quagliato
11/7/2013 - 9:56 PM

Verify if post has thumbnail and print it.

Verify if post has thumbnail and print it.

<?php if(has_post_thumnail()): ?>
  <div id="img">
    <a href="<?=get_permalink()?>">
      <?php the_post_thumbnail('home_news_single_img'); ?>
    </a>
  </div>
<?php endif; ?>