A dusty little corner of the Internet: electronics, computer hardware and software, general aviation, 1980's Mopars, and related sundry.

Computing


Import Posts into WordPress with SimpleWXR

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


Updated November 13, 2008

Copyright (C) 1996-2008 Russ W. Knize