verify_thumbnail_and_print_it.php

<?php if(has_post_thumnail()): ?> <div id="img"> <a href="<?=get_permalink()?>"> <?php the_post_thumbnail('home_news_single_img'); ?> </a> </div> <?php endif; ?>
Verify if post has thumbnail and print it.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.