When using Custom Loop to display a lot of posts on a page, you use Featured Image to display the images on that page. However, cropping occurs if the images are higher than 208 pixels, and I want my images to display at their original size ( about 210x270 ). How do I prevent the cropping of the images.


You can use: get_the_post_thumbnail function

 <?php echo get_the_post_thumbnail( $post_id, $size, $attr ); ?> 

In the size paramenters you can pass a two dimensional array of height, and width, or use 'full' to get the full image.

  • I second the use of "full" in the theme file. – unifiedac May 23 '14 at 17:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.