WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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
up vote 1 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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