My home page is set to show all post with a featured image. I want this image to be clickable to the original post.
I assume I need to wrap the thumbnail code into a link tag with the permalink to the post, but I am not quite sure exactly where to put it. Any help apreciated!!
This is from my content.php:
‘<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
if ( ” != get_the_post_thumbnail() ) :
$image = wp_get_attachment_image_src( get_post_thumbnail_id(), ‘feat-img’ );
// If the image is greater than or equal to 645, show it
if ( $image >= 645 ) :
the_post_thumbnail( ‘feat-img’ );