Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.