WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm importing posts from a Joomla v1.5 site using http://wordpress.org/extend/plugins/joomla-15-importer/ (The goal is to clone the site in WordPress then switch off Joomla)

On both sites the permalink structure is /%category%/%post_id%-%postname%/

Of course, when I import I am getting a different post ID in WordPress than existed in Joomla.

Can I change post ID manually in the DB after import? Aside from .htaccess file with a huge number of rules (one per article!) is there another workaround for this issue? Any comments/suggestions?

Thanks, Alastair.

share|improve this question
up vote 3 down vote accepted

wp_insert_post() function in WP accepts special import_id field in arguments and will try to use that ID, rather than automatically generating new one.

This is easy to use when writing import code yourself, but I have no idea how easy would it be to with that plugin. You could try suggesting this as a feature to plugin's eveloper.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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