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.


WordPress SEO: 10 tips for better search rankings

FREE E-book. Learn the basics of WordPress SEO and how to improve the key metrics
  • We won't sell your address to anyone. We hate spam too.
View my portfolio Get in touch

One Response to “The Custom Image Size Problem”

  1. Andrew

    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