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 am migrating domains and redesigning the site at the same time. My large image sizes are different than they were before. When I imported the old posts, I had it download all the images as well. My problem is that the images that were inserted with the old file size name. Is there a way to replace all of the images with the correct new image sizes? I just want it to use the default 'large' size, even though it is different than the original site.

In post html:

Actual image sizes:

share|improve this question

Use plugin Regenerate Thumbnails to resize thumbnails.


Try use filter "the_content" to convert in post content.


function foo ( $content )
    return preg_replace ('/540x287/', '525x279', $content);

add_filter( 'the_content', 'foo' )

Filter "the_excerpt" if need convert excerpt too.

share|improve this answer
That's not the problem. I want to use my new 'large' size instead of the old sizing. It's not a question of having the right sized images, it's a question of having the html in all my posts pointing to the old size. – Derek Perkins Mar 14 '11 at 18:02
I add solution. – Marcin Mar 14 '11 at 20:29

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.