Drupal to WordPress Migration Tool

This Drupal to WordPress migration script exports the bulk of the content from Drupal 6 to WordPress 3.5. It runs a series of MySQL queries to read information from a Drupal database and convert the content to WordPress. Although temporary tables are written to the database, no changes are made to the Drupal content. You may need to make some tweaks to your settings after running the migration to get your WordPress installation ready for launch.

If you’re not sure how to make the appropriate changes or would simply like someone else to do the work, please contact us and we’ll be happy to provide a quotation.

These initial versions should definitely be considered beta code and only used by people who know what they’re doing when it comes to setting up and configuring content management systems. Right now, the functionality is quite rudimentary. (See this article for some background information.) Part of my reason for releasing for public use is to get feedback for improvements.

It offers the following functionality:

Screenshot of our Drupal to WordPress migration tool

  • Migrates content from Drupal 6 to WordPress 3.5 database
  • Shows number of Drupal terms, node types and entries to be migrated
  • Option to select which Drupal content types to be converted into WordPress posts
  • Option to set WordPress file directory
  • Option to set WordPress permalink structure
  • Option to select which Drupal terms will be used as WordPress categories
  • Option to select the WordPress default category

Drupal to WordPress migration: Installation and use

Copy folder to a web server or hosting account and run the drupaltowordpress.php script on your browser. Follow the on-screen instructions. You should be able to use any type of MySQL and PHP environment so long as the code can connect to both the Drupal and WordPress databases on the same server. Both databases must share the same connection details.

The web front end works with very basic Drupal installations but for anything more complicated, you will get better results by customising the SQL queries in the file drupaltowordpress-custom.sql. Do not run the custom script without understanding what will be performed at each step as it contains sample values. You’ll need to edit the queries to suit your own Drupal setup. For more information, see Drupal to WordPress migration explained.

For post-export troubleshooting, please see our Drupal to WordPress migration notes for additional help.

Download

Download The Drupal to WordPress Migration Tool
Version Download Release date
0.4 All new versions can now be found on GitHub 21 June 2014
0.3 drupaltowordpress-d6w35-0.3.zip 26 May 2013
CAUTION: Make a backup of both your Drupal and WordPress databases before running this tool. USE IS ENTIRELY AT YOUR OWN RISK. I’m offering this tool with no warranty or support implied.

Supporting future development

The Drupal to WordPress Migration Tool is available completely free of charge. If you find it useful, please consider making a donation to support future development. I would like to add many more improvements but this would only be practical if I can justify taking time away from other revenue generating work. Thank you!

Acknowledgements: