Support » Fixing WordPress » How to display not cropped fearured post thumbnails

  • 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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    Thread Starter snecz

    (@snecz)

    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?

    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.

    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.

    Moderator keesiemeijer

    (@keesiemeijer)

    @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 );

    Thread Starter snecz

    (@snecz)

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to display not cropped fearured post thumbnails’ is closed to new replies.