WordPress.org

Support

Support » How-To and Troubleshooting » Start post id numbering with three-digits?

Start post id numbering with three-digits?

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    @esmi

    Forum Moderator

    May I ask why? What do you intend to with with these ids?

    for example, if you are a journalist and need 3 digit numbers at the end of the url in order to be recognized by news search engines. Either way, there are many reasons why one might want to do this.

    So how can we do it?

    esmi

    @esmi

    Forum Moderator

    The post ids are generated by the MySql database, so short of publishing 100 drafts/revisions and then deleting them, I don’t know of any safe way to do this at the post creation point.

    I was wondering if you just wanted to these ids for something visual or non-critical. But if they’re intended to be part of the urls, I can’t think of a way to do it. Sorry. 🙁

    Maybe this via phpMyAdmin. Backup your database before attempting:

    ALTER TABLE wp_posts AUTO_INCREMENT = 100;

    The code suggested by MichaelH worked well for me when I wanted to reset my _posts table ID after a number of annoying revisions (when I thought I had revisions disabled). I did, of course, back up the table beforehand. Thanks for the help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Start post id numbering with three-digits?’ is closed to new replies.
Skip to toolbar