The Custom Image Size Problem

I’m building a WordPress theme where I use custom thumbnail sizes. I use the filter

add_image_size( 'Gallery list', 350, 200, true );

That works fine until I edit the original image in WordPress. For example, I’ve rotated a few of the images. When I click on the thumbnail it takes me to the now corrected image, however the thumbnail itself is as it was.

Do I need to regenerate these thumbnails? Is there a way to do this automatically after editing the image?

Thanks for your help.


One response to “The Custom Image Size Problem”

  1. Andrew Avatar

    This is the correct way to add an image size and it should generate the needed metadata for it. Could the wrong thumbnails be the old images cached in the browser?

    The only other reason I can think of at the moment would be for images uploaded before the theme was activated (i.e. before that new size was defined).

Leave a Reply

Your email address will not be published.