WordPress.org

Ready to get started?Download WordPress

Forums

How to display not cropped fearured post thumbnails (7 posts)

  1. snecz
    Member
    Posted 1 year ago #

    Hi, Right now I use
    <?php the_post_thumbnail();?>
    in my template to display featured post thumbnail.
    But the thumbnail is cropped by default.
    What can I do (without any plugin) to display post featured image in original dimensions but just smaller?

  2. cassihl
    Member
    Posted 1 year ago #

    You can go into your media library, click edit on one of the images, click "edit image", click and drag your cursor over the image to make a selection & drag the corners to make the selection as big as the image, under "apply changes to:" select 'thumbnail', click the crop button, then update media.

  3. snecz
    Member
    Posted 1 year ago #

    Thanks cassihl. But my client wants to work in dashbord area as little time as possible.ii
    He wants that thumbnail to be just resized original image that he already put in the post. No cropping, no additional plugins.
    Actually when I look in the media library all images are displayed just as I want. How I can achieve?

  4. peacexisxfree
    Member
    Posted 1 year ago #

    snecz, i am having the same problem. i had an older version on my .com and had all my images scaled down, but viewable as full size. once i upgraded and migrated to a .org, and added all my photos back into my posts, they all appear as thumbs only.

    i have made a post here but no one seems to be able to help.

    i think it may be a version issue.

    but check this out: two of my sets of photos loaded back into their respective blogs as full-size images.

    I have no clue what to do, but i very much dislike thumbs and making my guests have to click on my images to see their entirety.

    I am going to mess around with what cassihl has suggested, however. sounds like that may be key.

  5. peacexisxfree
    Member
    Posted 1 year ago #

    cassihl:

    thank you. that is exactly what i needed.

    is there a way to make a global change? i now have to make this edit to almost 600 photos.

    also, is there a way to make the "thumb" the full-size image in settings somewhere for future uploads?

    is this a version attribute?

    thanks for your info.

  6. keesiemeijer
    moderator
    Posted 1 year ago #

    @snecz
    You can set the size with the_post_thumbnail();

    Try it with:

    <?php the_post_thumbnail('large');  ?>

    or:

    <?php the_post_thumbnail('full');  ?>

    What can I do (without any plugin) to display post featured image in original dimensions but just smaller?

    You can create a new image size with add_image_size() and set the $crop argument to false:

    add_image_size( 'homepage-thumb', 220, 180, false );
  7. snecz
    Member
    Posted 1 year ago #

    @keesiemeijer thanks a lot. That's it!
    <?php the_post_thumbnail('thumbnail'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags