Make WordPress Core

Opened 7 years ago

Closed 4 years ago

Last modified 4 years ago

#6081 closed enhancement (wontfix)

Importers: use foreign post IDs when possible

Reported by: tellyworth Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Import Keywords:
Focuses: Cc:


When possible, the importers should attempt to insert posts using the foreign post ID. Not all import formats include that info, but some do, including WXR. There's an example for MT here:


I wouldn't suggest using that patch verbatim but wp_insert_post() could be enhanced to allow the post ID to be set when inserting, not just when updating.

Change History (6)

comment:1 @thee176 years ago

  • Component changed from General to Import
  • Owner anonymous deleted

comment:2 @Denis-de-Bernardy6 years ago

  • Keywords needs-patch added
  • Milestone changed from 2.9 to Future Release

comment:3 @Denis-de-Bernardy6 years ago

  • Keywords close added

suggesting close, too, as it can result in conflicts, mis-placed posts, and lots of other things.

comment:4 @johnbillion4 years ago

  • Keywords needs-patch close removed
  • Resolution set to wontfix
  • Status changed from new to closed

No traction in three years. I don't think this is possible anyway because ID is an auto_increment field.

comment:5 @duck_4 years ago

This was done already... [9100]

comment:6 @nacin4 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.