Batch image replacing plugin? (3 posts)

  1. vidgames
    Posted 9 years ago #


    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?


  2. Dgold
    Posted 9 years ago #

    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

  3. jabecker
    Posted 9 years ago #

    Backup your database first!

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

Topic Closed

This topic has been closed to new replies.

About this Topic