Make WordPress Core

Opened 10 years ago

Closed 8 years ago

Last modified 7 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)

#1 @thee17
10 years ago

  • Component changed from General to Import
  • Owner anonymous deleted

#2 @Denis-de-Bernardy
9 years ago

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

#3 @Denis-de-Bernardy
9 years ago

  • Keywords close added

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

#4 @johnbillion
8 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.

#5 @duck_
7 years ago

This was done already... [9100]

#6 @nacin
7 years ago

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