Blog, Blog Help, BlogML, Wordpress, XML

BlogML importer for WordPress 2.5

I had a blog server which I felt compelled to migrate to WordPress 2.5. The existing blog server can only emit the data in the BlogML format. So I set out to find an BlogML importer for WordPress 2.5. I stumbled upon Aaron’s post on importing to wordpress. So here is what needs to be done:

  • Downloaded WordPress BlogML import module from Aarons site (blogml_wp_2.3.zip)
  • Upload a copy of the BlogML.php file to your wp-admin/import folder
  • Edit the file and change the PATH_TO_CURRENT_DIRECTORY to point to the folder where import.php exists.
  • Download the PHP XPath library 3.5 from Sourceforge
  • Upload a copy of the XPath.class.php file to your wp-admin/import folder

We are all set now. Just go to your wordpress admin page and navigate to Manage -> Import. If all is well, then you should see an entry for BlogML. Just click on the link and follow directions to import the BlogML file into your WordPress blog.

PS:  Once you click on the BlogML link on the import page if you are unable to view the “Upload file and import” button then don’t worry, just open up the BlogML.php file and modify the following lines:

// Instantiate and register the importer
include_once(‘import.php’);
if(function_exists(‘register_importer’)) {
    $blogml_import = new BlogML_Import();
    register_importer(‘blogml’, ‘BlogML’, (‘Import posts, comments, users, and categories from a BlogML file’), array ($blogml_import, ‘dispatch’));
}

to

// Instantiate and register the importer
//include_once(‘import.php’);
//if(function_exists(‘register_importer’)) {
    $blogml_import = new BlogML_Import();
    register_importer(‘blogml’, ‘BlogML’, (‘Import posts, comments, users, and categories from a BlogML file’), array ($blogml_import, ‘dispatch’));
//}

 

Many thanks to Aaron for the plugin.