How to find page ID in WordPress 2.7
Jan 25
Blogging Page ID, WordPress 2.7 15 Comments
One of the changes in WordPress 2.7 release is the disappearance of page id column from the admin console. As far as I know, currently there is no way to display the page id column.
Page ids can be used to exclude or arrange links to the pages in the navigation menu.
I use page id to exclude certain pages from appearing in my navigation menu.
So, without the convenient page id column how do you determine the page id for a particular page?
There are some plugins available that add the page id column back to your admin console.
But there is a simple way to determine the page id without installing any plugin.
Here is what you need to do to find the id of any page.
- Log in to your WordPress admin console.
- Click on Pages link, to go to the Edit Pages page.
- You will see a list of all the pages with their names hyperlinked.
- Hover your mouse over the name of the page whose id you need.
- Keep an eye on your browser’s status bar.
- In the status bar, following the name of the page you will see something like “?action=edit&post=12″
- The number after “post=” is your page id. (12 in this example).
Until WordPress re-introduces the Page ID column this is the simplest way of determining the ID of a page.
Enjoy.
Related posts:



Feb 20, 2009 @ 08:45:05
This was so helpful! I’ve been looking for my Page IDs for a while now and finally gave up and Googled it.
Thanks!
Feb 26, 2009 @ 16:29:46
Exactly what I was looking for. Thanks for sharing your tip!
May 02, 2009 @ 04:26:35
Thanks for your information. I was struggling to look for the page ID.
May 02, 2009 @ 09:43:14
@Soccergoalx, I am glad you found this post helpful.
May 06, 2009 @ 10:26:00
Excellent! Thank you very much!
May 07, 2009 @ 06:08:34
How do we determine content via the page ID for 2.7?
if ($page->ID == 31) {}
no longer works!
Oct 21, 2009 @ 23:24:17
Je pense que c’est le mensonge. achat de viagra De pis en pis. generique viagra
Aug 18, 2010 @ 07:44:00
I’m using 2.9.2 and this works. I just didn’t know to look in the status bar. Thanks so much!!!
Oct 22, 2010 @ 06:12:36
what is diffrence between $page->ID and $post->ID .
$page-ID doesn’t work in header.php but fine in classes.php
where as $post->works in header.php
Feb 23, 2011 @ 10:34:29
how to find page id of URLs like “mysite.com/archives” ?
Aug 28, 2011 @ 08:44:43
The information was very helpful. Thank you.
Sep 03, 2011 @ 03:43:44
Valuable information, well written!
Sep 06, 2011 @ 10:12:15
Very well written. Thanks for the info
Sep 09, 2011 @ 03:41:21
More good stuff!
Nov 11, 2011 @ 15:44:56
how to find page ID if I already set /%postname%/ for my permalinks?
now it just has edit “home” instead of “?action=edit&post=12?