• Resolved xdiorangelx

    (@xdiorangelx)


    Is there a way to reset the page id from 1? My page id is starting from 139 and that’s really too much lol..

Viewing 5 replies - 1 through 5 (of 5 total)
  • You will need to access the database directly, either through a shell account or with something like phpmyadmin. Once you login to your database:

    alter table wp_posts auto_increment=1

    Assuming your table name is called wp_posts, that is.

    Remember posts and pages share the same database table called wp-posts. So you could have 138 posts and if you then created a page, that page would get assigned id 139.

    Thread Starter xdiorangelx

    (@xdiorangelx)

    Oh that’s the case. So if I were to edit the database directly and reset the number to 1, will my posts be gone? -_-“”

    Thread Starter xdiorangelx

    (@xdiorangelx)

    The main reason is because I would love to customize my site fully with WordPress. However, I dont really want to lose all my posts. I had trouble importing my entries to another domain and I dont want to lose them 🙁

    Have your tried running permalinks to organize your site? You can turn them on options->permalinks. It’s a much better way to organize (and future-proof) your site than using ID numbers.

    If you want to organize using ID numbers you don’t really have any choice but to go into the database and manually change IDs. It’s tricky because you don’t just need to change post IDs but also comments, attachments, custom fields, etc that may be attached to that post.

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

The topic ‘Resetting page ID’ is closed to new replies.