Migrating sites to wordpress

Hey Guys,

hope this finds everyone well.

Ive been doing a lot of site migrations to wordpress, im finding when i do migrate blogs for example there will be html embedded in the database fields im taking the data from to import into wordpress.

net end result is i’m being left with external images in my posts. which all load fine, — until i transfer the site over. ive been ftping the images in and editing the links either in the import or the db. but i really want to automate this.

So im thinking about writing a plugin thats very similar to “import external images”,

it will go through the pages and posts and look for <img tags, download the image into media, then change the link in the post or page to suit the local address.

however my partner feels like there wouldnt be enough demand to warrant the effort.

yet i could use this every time i migrate a non wordpress site to wordpress.

which leads me to wonder,

How do other people handle this problem?

Am i doing this the wrong way?

Would anyone here find the plugin Ive described useful?

id really appreciate some feedback on this.


Luke Hands

  • James Morris
    • WordPress Enthusiast

    Hello Luke,

    Prior to beginning my career here, I’ve run into this situation a few times and have tried a few approaches. All of them left a lot to be desired.

    If the site I’m importing from supports full-text RSS feeds with image links in the feeds, I would just use a plugin like Autoblog to import all the data. Kind of a backdoor way of doing it, but it worked. This was perhaps the easiest as it allows import of the images into the Media Library. But, it requires the originating site have full-text feeds with image references.

    There, of course, is the native WordPress importer and the various different CMS->CMS importers out there, and some of them work fairly well. But, as you’ve probably already found, they don’t always work. There seems to always be some cleanup work.

    I’ve also done direct SQL->CSV exports and used a plugin like WP All Import to get the data in DB.

    But, again, all this requires doing some find/replace and packaging up and migrating the images.

    Something like what you are suggesting that can handle many different DB schemas, that would export the data in a WP friendly format and package up all the relevant Media would be a very nice plugin for the market. If I was still doing independant web dev work, I’d use it.

    Best regards,

    James Morris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.