WordPress.org

Support

Support » Plugins and Hacks » Batch image replacing plugin?

Batch image replacing plugin?

  • Hello,

    I recently moved my wordpress.com-hosted blog to my own custom domain. For image hosting, I previously always used Imageshack.

    Now that I’m on my own server I want to preserve the images permanently, since we all know they’ll get deleted on Imageshack eventually.

    However, I’ve got about 400 articles with images in them. So is there some plugin that would, for example, look through every existing article for images, and replace the URL part in front every image filename with one I specify? Then I could just save all images to my server and would not need to go through every single article, replacing the URLs manually.

    If there is no such plugin – could anyone tell me how to write one?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I think what you need is Search & Replace. Either do it in MySQL probably using PHPMyAdmin, or, I think there is a Search And Replace plugin for WP that handles it.

    Just be careful writing your S&R so you don’t overwrite any non-JPEG URL’s. It shouldn’t be too hard if allllll your pictures and nothing else starts with http://www.imageshack

    Backup your database first!

    Actually, you could export your database to a file and do the mass edit in Notepad, then reimport it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Batch image replacing plugin?’ is closed to new replies.