Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cloudstr210

    (@cloudstr210)

    This is how my theme shows the thumbnail of the post in the homepage.

    if( has_post_thumbnail() ) {  ?>
        <?php $featuredImage = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>
            	<img src="<?php echo $featuredImage; ?>" alt="<?php echo the_title(); ?>" />
            	<div class="entry-overlay"><span class="icon-fullscreen"></span></div>

    i have same issue, can u help us?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to use this on featured image’ is closed to new replies.