metaruss

Tag: WordPress

Import Posts into WordPress with SimpleWXR

by on Nov.13, 2008, under Computing, Site

After some experimentation with the WordPress eXtended RSS (WXR) importer, I decided it was more trouble than it was worth.  The importer requires too many details to create usable posts out of the basic “log” entires on my old website.  Instead, I have taken the portion of Zack Preble’s “CSV” Importer that interfaces with WordPress, fixed the database query problems for categories, and adapted it to a simple XML parser.  Then it was a simple matter to write a Perl script that could parse the HTML and generate the XML files.

The XML tags are modeled after WXR and the following are supported:

<item>, <title>, <post_date>, <category>, <content>

Here is an example XML file.

Source

1 Comment :, more...

Search

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact me.

Sites that interest me

A few highly recommended friends...

Meta