Title: Edit Page ID In WordPress Database
Last modified: August 19, 2016

---

# Edit Page ID In WordPress Database

 *  [luispunchy](https://wordpress.org/support/users/luispunchy/)
 * (@luispunchy)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/edit-page-id-in-wordpress-database/)
 * I used the import function (under Tools), but for some reason it changed a few
   of my page IDs. I use specific IDs hard-coded in my theme, and would rather correct
   the IDs in the database as opposed to have to edit my theme files.
 * Is there a way to edit the page IDs for specific pages in the WP database?
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Thread Starter [luispunchy](https://wordpress.org/support/users/luispunchy/)
 * (@luispunchy)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/edit-page-id-in-wordpress-database/#post-1505214)
 * update: I see now that I can access and edit the post IDs in the ‘wp_posts’ table
   in the database, via phpMyAdmin.
 * So now, the question is simply: what are the risks / errors that could result
   if I manually change a post ID in the database?
 * Again, the scenario is that the post ID for a few pages where, for some unknown
   reason, actually changed during the WXR import. So I simply want to correct those
   pages’ IDs… I know the post IDs I want to use and they are not in use currently,
   so there won’t be any duplication. Any other possible conflicts to be aware of?

Viewing 1 replies (of 1 total)

The topic ‘Edit Page ID In WordPress Database’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [id](https://wordpress.org/support/topic-tag/id/)
 * [Page ID](https://wordpress.org/support/topic-tag/page-id/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [luispunchy](https://wordpress.org/support/users/luispunchy/)
 * Last activity: [15 years, 12 months ago](https://wordpress.org/support/topic/edit-page-id-in-wordpress-database/#post-1505214)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
