Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

Codex from Wordpress: add_image_size, post_thumbnail

  add_theme_support('post-thumbnails');
  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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.