I'm moving a site with specific post IDs. If I programatically make a post with postID "4", and the autoincrementer is at "3", what are the consequences? Would it just skip to "5", overwrite 4, or blow up?

  • WordPress doesn't increment the post ID. The MySQL database does. So this is more of a generic MySQL question. But my question would be, why do you need to do this? If you find yourself relying on the post ID for something user-facing, and require particular numbers, then the post ID shouldn't be the number to use. Commented Sep 12, 2019 at 5:14
  • I'm moving a site from a custom CMS to WordPress, and I have to preserve the post IDs because of internal linking.
    – John Dee
    Commented Sep 12, 2019 at 22:02


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.