enter image description here

As you can see, I've uploaded an image of book. Whenever I upload images, wordpress seems to crop it all the time. Is there a plugin or a code I can put to where it will show the whole picture instead of cropped ones?

Thank you very much in advanced!

  • This depends upon theme you are using. Theme may display cropped or original image. – Nilambar Apr 20 '15 at 3:31

The theme you are using crops uploaded pictures, but there is always a version of the picture which keeps the original full size. Modify the code that render the picture that it will use the size parameter. Eg:

Use: wp_get_attachment_image:
echo wp_get_attachment_image( $attachment->ID, 'full' );
Or: display post_thumbnail:
echo get_the_post_thumbnail( $post->ID, 'full' );

'full' here means the full size

More: https://codex.wordpress.org/Function_Reference/wp_get_attachment_image https://codex.wordpress.org/Function_Reference/get_the_post_thumbnail

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.