I have set crop in functions.php to resize Images for Posts.

Codex from Wordpress: add_image_size, post_thumbnail

  set_post_thumbnail_size(100, 100, true); //size of thumbs
  add_image_size( 'post-thumb', 180, 180, true ); //(cropped)

Usage is like below

<?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'post-thumb' ); } ?>

But it will not resize the thumb and shows the original size. What am I doing wrong?

  • did you upload the image before you added the new size? WP will not resize the images on-the-fly, you'll have to regenerate sizes that were added after upload. – Milo Feb 5 '13 at 18:34
  • It is taking on the fly with WPeMatico. Also tried with this link – user2036282 Feb 5 '13 at 18:41

After adding new image sizes, you might need to rebuild your thumbnails. I have used AJAX Thumbnail Rebuild after encountering a similar issue, and it worked fine.

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.