I have this setting in function.php
add_image_size( 'thumbnail-gallery', 185, 185, true );
It will display a square picture.
Everything is fine before I regenerate new size using “Regenerate Thumbnails” plugin.
After the process finished, the <?php the_post_thumbnail( 'thumbnail-gallery' ); ?>
will return the original “big” url instead the regenerate url.
it does not crop. original file url. not square.
Look at the
wp-content/uploads/
directory. Does your cropped image exists there? (e.g.myimage-185x185.jpg
). If not, you could try to calladd_image_size()
on theinit
action hook.functions.php
This work beautifly for me:
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 200, 300 );
add_image_size( 'thumbnailGallerySmall', 145, 120 );
The Integration Code
Try it.. and good luck