Support » Theme: Pinboard » How to show featured image on post page

  • I tried to use the code offered in a previous post:

    <?php if ( has_post_thumbnail() ):?>
    <div class=”featured-image-wrap”><?php the_post_thumbnail(); ?></div>
    <?php endif; ?>

    But the image displayed on the individual post page was 650x650px in size. How can I get the image to show as it does on the main page?

    Thanks in advance,

    ~Dave!~

Viewing 1 replies (of 1 total)
  • I got it! If you add array(width, height) in the risght spot, it works! Example:

    <?php if ( has_post_thumbnail() ):?>
    <div class=”featured-image-wrap”><?php the_post_thumbnail(array(650,276); ?></div>
    <?php endif; ?>

    That code should go right after <header class=”entry-header”>.

Viewing 1 replies (of 1 total)
  • The topic ‘How to show featured image on post page’ is closed to new replies.