Drupal to WordPress Migration Tool

This Drupal to WordPress migration script exports the bulk of the content from Drupal 6 to WordPress 4. 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.

For more information, see our Drupal to WordPress migration service.

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 4 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.


Updates

August 2015: It’s been some time since I’ve updated the web-based PHP Drupal to WordPress Migration Tool. After a number of Drupal to WordPress migrations, I find the PHP and HTML platform to be inefficient for more complex Drupal configurations. pyD2W is my Python-based command line replacement that is better suited to complex set-ups. View the repository on GitHub. I’ll no longer be updating the web-based version to focus on the Python replacement.

July 2015: If you need to migrate images from Drupal to WordPress, check out Brendan Carr’s Drupal to WordPress Image Migration plugin.

21 June 2014: Moved the The Drupal to WordPress Migration Tool repository to GitHub.

26 May 2013: First release of the The Drupal to WordPress Migration Tool: drupaltowordpress-d6w35-0.3.zip


Download

Download The Drupal to WordPress Migration Tool
Description Platform
pyD2W, a command line Drupal to WordPress Migration Tool on GitHub Python
Web-based Drupal to WordPress Migration Tool on GitHub PHP & web front-end

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.

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: