im importing data from Drupal to WP. I have more than 10 000 posts. Each post have ID, category and slug. For example:

  • Category> important
  • ID> 11111
  • Slug> hello-world

I need to keep permalinks same like they are on drupal because of SEO:


The problem is that, i cant insert post with ID 11111 until is database index set to this number. If i do import, this post will actually much smaller, never the same like on drupal.

I wanted to make post-meta with old url. For example

  • _oldSlug> 11111-hello-world

And then apply rule: If is set post-meta named "_oldSlug" use it (%category%/_oldSlug), else use wp logic (%category%/%postid%-%postname%). But problem is, that i dont know how to achieve it, if is that posible...

Any idea how solve this problem?


Migrating content from Drupal to WordPress is bit tricky task and requires expertise. If you are familiar with WordPress development, try to find some solution around "save_posts" hook which will get triggered whenever new post/page gets saved into database. Before you jump into actual coding, I suggest you to take a look at these articles, to get more understanding about Drupal to WordPress migration.

From Drupal To WordPress

How To Migrate From Drupal To Wordpress

| improve this answer | |
  • Please add the important contents from the link to your answer instead of just posting links – Tunji Jan 20 '17 at 13:28
  • Sure thing. I will keep this advice in mind when I post any answer now onwards. Thanks for the advice. :) – Milan Savaliya Jan 20 '17 at 14:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.