LeonidMyronov
8/17/2016 - 1:15 PM

Post Thumbnail Linking to the Post Permalink

Post Thumbnail Linking to the Post Permalink

<?php if ( has_post_thumbnail() ) : ?>
    <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
        <?php the_post_thumbnail(); ?>
    </a>
<?php endif; ?>