Adding Featured Image? (7 posts)

  1. Wadeouellet
    Posted 6 years ago #

    With WordPress's featured image option for posts, how do you actually get that image to display in posts and in the loop? I'm assuming it's just some quick PHP in the template but I can't find it.


  2. Wadeouellet
    Posted 6 years ago #

    Ok, this resourced helped: http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/

    Still one more problem. For some reason it's cutting some height off the image. The natural image size is 278x278, I set the thumb size to 75x75 and it's cutting the source image to 278x198, therefore making the thumb 75x59.

  3. dogshindleg
    Posted 6 years ago #

    I'm having this problem too. Why does it crop to 198px high?

  4. oldbag66
    Posted 6 years ago #

    me too, any ideas where this size is set?

  5. Rev. Voodoo
    Posted 6 years ago #

    do you use set_post_thumbnail_size( 50, 50 );


    set_post_thumbnail_size( 50, 50, true );

    you would want to use the second option (true) to have an exact sized thumbnail

    The first option has the image resized first, whereas the second crops to exact size

    The tutorial above gives a good description of the 2 modes

  6. Digital Raindrops
    Posted 6 years ago #

    Try this method by using a custom image size, I use this and have different sized thumbnails named 'home-page' and 'list-page' and just add the different calls to return the images:



  7. JacksonVintage
    Posted 5 years ago #

    With the 'latest post' image I cant seem to change the image size. Can anyone help me here. Where can I change this? I'm at the early stages of learning how WP works so if you can give any advice with this in mind that would be fantastic. Thanks in advance.

    hotsalt.info is the address of my blog.

Topic Closed

This topic has been closed to new replies.

About this Topic