• Hello,

    I’m fairly new to the WordPress frame work and I’m having some difficulties with Post Thumbnails.

    What I’m trying to do is have 2 images, 1 be the large image that is displayed on the post’s page, and a second image is the post’s thumbnail.

    Is there a way I can tell WordPress to use one image as the thumbnail, and a different image as the “Featured Image”?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes on your index.php for example you could call
    the_post_thumbnail(‘thumbnail’);
    and on your single.php you could call the_post_thumbnail(‘medium’);

    the_post_thumbnail(‘large’);
    and
    the_post_thumbnail(‘full’);

    are also available.

    The sizes for these are set under Settings > Media

    Thread Starter ajmaxwell

    (@ajmaxwell)

    I’ve got that setup, but what I’m having issues doing is actually setting the images as the different sizes in the “Gallery” tab in the “Featured Image” pop up thingy.

    I have uploaded an image that is 50×50 and I’ve set the thumbnail sizes to 50×50 in Settings > Media. But it won’t let me make an image, that’s not the featured image, the thumbnail. I can only set my larger image as the thumbnail or the full size, but I can’t set the smaller image as the thumbnail.

    I don’t think you can do that. That’s not how the gallery works. The gallery automatically creates thumbnails and uses those in the gallery as you describe. I don’t think there’s a way to use different thumbnails.

    In the past, what I’ve done for “picky” clients is for a few thumbnails that weren’t cropped properly, I went and grabbed the thumbnail via ftp, replaced it with my better cropped image and re-uploaded it in the uploads folder making sure that the naming stays the same. That’s fine for one or two images, but obviously not ideal.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Post Thumbnails’ is closed to new replies.