If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #16787

    Hi there,

    I’ve changed my front page so that it displays an excerpt instead of the beginning of a post. I’d like to add a thumbnail of the featured image to the side of the excerpt though. Any idea how I can do that?

    My site is http://liamgetreu.com/




    Never mind, I figured it out.

    I added this code in the format-standard.php file:



    echo "<p class='excerptimage'>" . get_the_post_thumbnail($id, array(120,120), array('class' => 'alignright')) . get_the_excerpt() . "</p>";



    Hi liamgetreu,

    Glad that you’ve fixed it. :)



Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Adding thumbnail/featured image to excerpt’ is closed to new replies.