Technosailor.com Readers! Donate today to assist the Partners in Health Haiti Relief in their efforts.

5 July 2006 3,408 Comments

WordPress-to-WordPress Import

I know there are quite a lot of folks who have wanted to merge WordPress blogs or in one way or another import from one blog into another. The feature is coming in the next major build of WordPress and is already in place on WordPress.com blog. Trust me. But for now, I have wrapped that code into a plugin. I’ve already merged two blogs and there are other reasons I need this as well. It works. I have not had a lot of other extensive testing, but for me it works.

So while Matt Mullenweg wrote most of this code, I’ve ripped it off and made it into a plugin for those of us not running bleeding-edge next-gen WordPress blogs.

The exporter pumps a WordPress blog (including comments) out to a WXR file (WordPress eXtended RSS). It will allow you to import blog entries and comments into an existing WordPress blog. It does not overwrite existing entries and it respects authors by giving you the ability to choose who the imported entries are attributed to.

To use it, download the zip (7.6k) or tarball (6.8k) and extract.

  1. Upload
    1
    wp-xmlmigrate.php

    to

    1
    wp-content/plugins/
  2. Upload
    1
    wordpress.php

    to

    1
    wp-admin/import/
  3. Activate the plugin.

Note: Both of these files are optional. Uploading wp-xmlmigrate.php and activating will only provide the ability to Export a WordPress blog via the Manage > WP Export menu. Uploading wordpress.php will allow you to import an existing WXR file (a dump from another blog). This file is actually an importer, not a plugin, and so activation is not required to use it. Access the Import mechanism through the standard WordPress Import menu.

Really, the credit goes to Matt Mullenweg for 90% of the code.

Changelog
1.0
- Initial Release
1.0.1
- Minor PHP fixes
1.0.2
- Fixes Version check error when migrating from a WP 1.5.x blog
2.0 – Nov 15, 2006
- Rewrite of codebase
- Fixes “dirty” XML export
- Add support for Category Exports
- Adds support in Export for “Excerpts”. Does not fix weakness in wordpress Importer that does not import excerpts.
2.0.1 – Dec 5, 2006
- No Fixes to export
- Now bundled with new Automattic-developed wordpress.php import file

Pick up your copy of the WordPress Bible, a wildly popular resource for beginners and experts alike.

Popularity: 52% [?]

3,408 Responses to “WordPress-to-WordPress Import”


Trackbacks/Pingbacks.