• I want to use Featured Images but I’m afraid WordPress doesn’t offer much customization. For example, some of my posts show full size images (width: 1024px) for long articles and some other posts (short news) show smaller images (width: 400px).

    Once I uploaded the image using the Featured Image box, how can I choose the size of the image in my single.php (either 1024 or 400)?

    If I want to be able to use different sizes, should I created a second Featured Image box to upload the smaller images?

    Featured Images are great for display purposes (different sizes depending if you’re viewing a post on homepage or archives) but it doesn’t allow to choose the size of the image we want to show on single post view…

    Thanks for your help! 🙂

Viewing 1 replies (of 1 total)
  • Look for the the_post_thumbnail function in single.php and change it accordingly:

    the_post_thumbnail( 'thumbnail' );  // Thumbnail (default 150px x 150px max)
    the_post_thumbnail( 'medium' );   // Medium resolution (default 300px x 300px max)
    the_post_thumbnail( 'large' );    // Large resolution (default 640px x 640px max)
    the_post_thumbnail( 'full' );     // Full resolution (original size uploaded)
    the_post_thumbnail( array(100, 100) );   // Other resolutions

    You can find the WordPress documentation here https://developer.wordpress.org/reference/functions/the_post_thumbnail/

Viewing 1 replies (of 1 total)

The topic ‘Customize Featured Images in Single Post’ is closed to new replies.