Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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/

    Thanks,

    Liam.

    #92843

    Never mind, I figured it out.

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

    if(!is_single())

    {

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

    }

    #92844

    Hi liamgetreu,

    Glad that you’ve fixed it. :)

    Cheers,

    Ismael

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

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