WordPress.org

Ready to get started?Download WordPress

Forums

Multiple post thumbnail sizes? (5 posts)

  1. virgild
    Member
    Posted 4 years ago #

    I just discovered the post thumbnail feature and I really like it! My question is.. is there is a way to post different sizes of thumbnails?

    I have mine set to 200x200 for blog posts and I wanted to use 100x100 on the homepage.

    Will they all be one size by default?

  2. doc4
    Member
    Posted 4 years ago #

    virgild,

    WordPress provides a thumbnail during upload. Check your settings here: Settings > Media > Thumbnail size.

    In case I misunderstand, you can always size an image with CSS bringing the size down to 100x100 like so.

    .image-thumbnail {
    width: 100px;
    height: 100px;
    }

  3. virgild
    Member
    Posted 4 years ago #

    Oh sorry, I was referring to the new post thumbnail feature in wordpress 2.9.1

  4. doc4
    Member
    Posted 4 years ago #

    virgild,

    You can use the CSS class of:

    .wp-post-image {
       width: 100px;
       height: 100px;
    }

    or you can be a little more specific within a template by using:
    <?php the_post_thumbnail(array( 100,100 )); ?> to specify where the thumbnail should appear and what size it should be.

  5. Dunhamzzz
    Member
    Posted 4 years ago #

    I found this post to be a great help for me on the same topic:

    staff-lounge.com/mark-jaquith-new-in-wordpress-2-9-post-thumbnail-images-36264/

    Go to the bottom where the more advanced stuff is, defining an additional thumbnail size for use on a different part of the site :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.