WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm not sure if I'm blind here, but short of digging directly into the database tables, where would I find the database id for a post or a page?

share|improve this question
up vote 2 down vote accepted

IDs always show in links in admin area, like /wp-admin/post.php?post=2164&action=edit

There are also some plugins that simplify this, quick search came up with Simply Show IDs.

share|improve this answer
So clearly I'm blind then, or just didn't think before posting – baldy Oct 3 '10 at 16:22

Also, the status bar at the bottom of your browser is usually a convenient place to note the id when hovering over a link from within the admin

share|improve this answer

Another plugin that can do this (and one I use often) is "Reveal ID for admins" http://wordpress.org/extend/plugins/reveal-ids-for-wp-admin-25/

share|improve this answer

If you're a code geek, you might want to add <body <?php body_class('class-name'); ?>> and your body tag will show the page-id

share|improve this answer
Sorry, no, that would not add the post ID. – toscho Oct 16 '12 at 16:48
Ops, sorry, I meant to type this <body <?php body_class(); ?>> with reference to the codex codex.wordpress.org/Function_Reference/body_class – Mohd Rafie Kamaruzaman Oct 16 '12 at 21:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.