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.

Advertisements

7 thoughts on “BlogML importer for WordPress 2.5

  1. I think just commenting out code is a bad way to get this to work.
    Changing import.php to admin.php fixes the problem correctly as that page (I believe) was renamed since Aaron’s import.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s