• I want to re-create my WP installation with a clean install.

    I have over 100 posts right now.

    I’ve moved posts before to new sites using the export posts and then importing it on the new site without any problems. But, I think it’s grabbing the images from the old domain, which still exists while doing the import.

    If I’m correct, is it possible to export the posts (let’s call it example.com) to an XML file and wipe my domain clean and re-install WP (on example.com) and then try to import the XML file?

    If I can’t, how can I go about importing my posts to a clean WP install on the same domain that I was using.

    • This topic was modified 6 years, 9 months ago by webster.
Viewing 2 replies - 1 through 2 (of 2 total)
  • I can’t think of a really good reason to do what you want to do but if you must do so then do a really good backup of files and the database first.

    Export your site via WXR and don’t forget to export the media.

    Rebuild the site and upload the upload directory with your media library there.

    Import the rest.

    You’ll just about have back everything you had before. Your database might be slightly different because the table structure will probably change to the InnoDB Engine and you might not wind up with a few core or plugin files that never hurt anything anyway.

    I’ve done this for various reasons in the past… usually because I didn’t know better at that time. Most of my sites now are still the same from 5 years back with just the updates being added as needed.

    If there’s an issue you are trying to correct you might be better off doing a bit of troubleshooting to get rid of that problem instead. If you need our help to figure things out then create a new topic for that and let us try to help you.

    This is the same advice I’d give if you were moving to a new host or splitting out the WordPress across multiple hosts.

    If it ain’t broke don’t fix it.

    Thread Starter webster

    (@wplogin)

    I understand you think what I’m doing is a bit crazy.

    But, the site was acquired from another owner. It’s a 12 years old WP site, and had custom changes to it.

    I just don’t know what the other owner did with it. Some plugins don’t work properly even though I’ve disabled all the plugins except that one. I know the plugin works well though because I’ve installed it on two other sites which have multiple plugins and it works fine.

    I’ve tried changing the theme to WP default and other stuff. I’m pretty sure rebuilding will be faster than debugging it. Plus, I want to change the theme anyways.

    I’m hoping rebuilding it is just as easy.

    Based on what you described, I think it’ll be much faster.

    I think I’ll have to install one more plugin to resize images according to the new theme, but, otherwise, everything you laid out was how I planned to do it as well.

    Thanks for confirming.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Import a Posts XML file into the same domain’ is closed to new replies.