WordPress.org

Ready to get started?Download WordPress

Forums

BlogoLife
Add thumbnails to post summary (2 posts)

  1. chocopuddin
    Member
    Posted 1 year ago #

    Hello. I was wondering if anyone might have a easy way to add the thumbnail image to the post summary. For example, on the homepage is a list of the most recent posts. I would like to make the featured image visible next to the excerpt.

  2. chocopuddin
    Member
    Posted 1 year ago #

    Okay, well I figured out how to get the image next to the excerpt. However, I want to align it left so that the excerpt shows up next to it rather than below. Any coders in here that might be able to help? I have added this coding so far...

    I added this to function.php:
    // add thumbnails to posts
    if ( function_exists( ‘add_theme_support’ ) )
    add_theme_support( ‘post-thumbnails’ );
    set_post_thumbnail_size( 100, 100 );

    I added this to content.php (before "entry content")
    <div class="thumbnail"><?php the_post_thumbnail(); ?></div>

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic