WordPress.org

Ready to get started?Download WordPress

Forums

5 digit post ID for newsite (2 posts)

  1. mkoxp
    Member
    Posted 7 years ago #

    I'm trying to use WordPress for a newsite, and wish to have post ID as 5 or 6 digit (like http://mysite.com/?p=00231 ) from the beginning (rather than starting like 2,3,10,11 ..). Please let me know whether it is possible through some configuration or need to hack codes. Thank you very much.

  2. davidchait
    Member
    Posted 7 years ago #

    You can go into the MySQL db, and set the auto-incrementing value to be 10000, then everything will be 5 digits automatically. That's the best way to do it, IMHO.

    alternative would be a custom permalink format where you 'expand' the post ID as part of the format to have leading 0's, likely would want to be done as part of a string (mysite.com/p00231/).

    Just some thoughts.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags