Hi everyone!

I recently needed to migrate a WordPress site to Drupal 11 CMS.

After trying several existing modules and hitting various roadblocks, I decided to take a different approach.

I’ve developed a standalone, interactive Drush script that guides you through the migration process via the terminal.

To build this, I leveraged AI (Claude, Gemini, and GPT) to help refine the logic and handle the complex XML mapping.

After extensive testing and bug fixing, I now have a working tool that I’m happy to share!


Key Features:

  • Interactive CLI Wizard (no manual YAML configuration needed).

  • Dry Run mode to test before importing.

  • Automatic cleaning of Gutenberg blocks.

  • Handles Media, Comments, and Taxonomy terms.


⚠️ NB: This is a work in progress!

While it works well for me, there are likely small bugs to squash.

Please make a full database backup before using it.

Important: You must manually assign the necessary fields (Taxonomy/Comments) to your Drupal Content Types before running the script, otherwise, those relationships won't be mapped.

I'm not a pro developer, but I’ve put a lot of effort into making this migration as smooth as possible.

I hope it can be useful to others!

Any feedback or contributions are welcome.


Demo: https://dev.salvatorenoschese.it

GitHub Repo: https://github.com/SalvatoreNoschese/wp2drupal-migrator

Comments

tolstoydotcom’s picture

The more the merrier, but how about contributing fixes to https://www.drupal.org/project/wordpress_migrate ?

Available for paid support, module development, migrations, consulting...

salvatoren 🇮🇹’s picture

To be honest, I tried wordpress migrate but...

Require some extra modules, and isn't simple to fix.

This script doesn’t require any module and, via Drush, can import content, comments, tags, categories, description, authors, and media (attachments).
It also handles URL replacement and cleans up WordPress code.
As you can see in the preview, it’s already a solid migration—and I’m working on an even better release.

asifqasim’s picture

This is a really impressive approach, especially tackling WP to Drupal 11 migration with an interactive Drush workflow instead of complex YAML. The dry-run option and Gutenberg cleanup are huge wins for anyone who’s struggled with content migrations. It’s also great to see transparent notes about limitations and required setup. Happy to see tools like this shared with the community—nice work, and looking forward to how it evolves!

salvatoren 🇮🇹’s picture

Still need some fixes, but indeed seems to work so good 💪😊

Tbh, ATM I stop to work with this project because I'm not satisfied with CMS 2 (do not support comments) but I glad media and gin theme (still not present in Drupal core) 😅