Home

Published

- 1 min read

wordpress get fiture image

img of wordpress get fiture image

The solution for this is noted below

wordpress get fiture image

Solution

   if ( has_post_thumbnail()) {
   $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
   echo '<a href="' . $large_image_url[0] . '">';
   the_post_thumbnail('thumbnail');
   echo '</a>';
}

Try other methods by searching on the site. That is if this doesn’t work