WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WP Re-Importer

Import content from a WordPress export file. Content that already exists is added as a post revision. Also lets you specify a default parent post.

Setting imported posts' post_parent to existing posts

The standard WordPress Importer only sets a post's post_parent if that post also exists in the import; it can't map an imported post to a post that already exists in the database.

Re-Importer looks in the import XML for meta with key = "_ptw_class"; the value must be a post title. We set the imported post's post_parent to be the post ID of an existing post with this same title.

Help! I'm getting out of memory errors or a blank screen.

If your exported file is very large, the import script may run into your host's configured memory limit for PHP.

A message like "Fatal error: Allowed memory size of 8388608 bytes exhausted" indicates that the script can't successfully import your XML file under the current PHP memory limit. If you have access to the php.ini file, you can manually increase the limit; if you do not (your WordPress installation is hosted on a shared server, for instance), you might have to break your exported XML file into several smaller pieces and run the import script one at a time.

For those with shared hosting, the best alternative may be to consult hosting support to determine the safest approach for running the import. A host may be willing to temporarily lift the memory limit and/or run the process directly from their end.

-- WordPress Codex: Importing Content

Requires: 3.5 or higher
Compatible up to: 3.5.2
Last Updated: 2012-11-26
Downloads: 13,493

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,1,1
100,1,1