In WordPress versions prior to 2.5 we could see the Page and post IDs in the WordPress admin panel. But from WordPress 2.5 and later, these are not displayed directly in your dashboard.
Here’s how you can find the IDs in WordPress 2.5 and later.
One Way
After you’ve logged into your WordPress dashboard, Go to Manage > Pages and from the list of Pages hover over the Page title you want to find the ID of. Every time you hover over, your browser’s status bar will show you a URL ending with a number like this.
http://www.xyz.com/wp-admin/page.php?action=edit&post=6
The number with which the URL ends is the Page ID (6 in this case).
Another
If you don’t see anything when you hover over, click on the Page link to open edit Page screen. Now, look in your browser’s address bar and you’ll find the URL ending with a number. and that is your Page ID.
![]()
Again, the number with which the URL ends is the Page ID (6 in this case).

Awesome! Thanks.
-Scott
Thanks!
Thanks!
Weird that WP hides the pageID. It is of limited to no use for the average user, but when you get into custom php code it may be very useful.
Unless WordPress is set to rewrite the URL’s … ?
Anthony: In that case, you can use the first method. even with mod rewrite on, the administration panel will still show a pages ID.
Just found this post on Google and it helped, thanks.
Thank you!
Great post! Thank you.
Thanks for helping me find the page id for my wordpress blog!
Thank you soo mach
Thanks. I already changed my slugs, and was having a hard time trying to find the page #s!
you made my day. thanks
how do you find the page id of the index blog?
I’m using custom fields to use a dynamic banner for each page (using an if else statement). I use the page IDs for the pages to show a certain image.
Funny how something like this I can’t solve after searching around for a bit.
So in summary, I need the page id for home (and home, index, and 1 don’t seem to work). any ideas?
thanks : )
I need the page ID for the home page. Any ideas?
Just found this information at wordpress.org:
In the theme’s header.php file, change the tag to this
<body>On the homepage, your body tag will now say
You can now override any existing styles for just that page.
For example, in your present stylesheet, your sidebar is defined as
#sidebar { width: 220px; }If you add this to the stylesheet:
body#homepage #sidebar { width: 175px; }on the homepage only the sidebar will display as 175 pixels. On all other pages it continues displaying at 220 pixels.
It works, I was able to set up a custom menu with this.
Oops, forgot the link and the some of the code did not go through here is the link to the original post:
http://wordpress.org/support/topic/255371
кто здесь?
Is it possible to get the url (permlink) to a page if you have the page id?
Thanks, Peter
As mentioned by others, the second method only works if you don’t mess with the permalink settings (and you should – since a textual url is better SEO-wise).
Anyway, thanks for primepress. Very comfortable to tweak.
Thank you for your generous help.
Finding the the WordPress Page ID is such a silly little thing but was driving me around the bend trying to identify how to find it.
Thanks for a great website and packing it full of practical information.
thank you admin very very nice blogs
Hey, nice post, really well written. You should post more about this. I’ll certainly be subscribing.
Unless WordPress is set to rewrite the URL’s … ?
Nice, Thanks Ravi that is great. I cannot believe it is as simple as using Manage > Pages I wish I knew that before as it would have saved me hours of messing around!
Thanks Guys.
hey, great post…
How would I find the page ID of the home page? The url info that appears for the home page does not have ID info, and I need the ID to modify a template (Atahualpa)
Thanks Guys.
Thanks!
Isn’t it incredible how one can waste so much time over not knowing silly details like this one.
Wonderful!
Thanks Guys. Wonderful
have been reading about this a lot recently – what a brilliant idea – saved me tons of wasted time.
Thanks so much for this! This is so incredibly odd! Yes, I did change the permalinks to suit me, and short of exploring the database, would never have found this. I’m off to glue my hair back in.
Wikipedia is great!
Thanks Guys
Thanks Guys yeah!!!
Yes, i will use this and try. Hope it will work.
I’m using WordPress, a theme from iThemes and Ecto on my Mac OS 10.5
I found the “hovering” tags, but they don’t include the page ID, just the page title. Any ideas why mine are gone and where else I could find them? I want to remove the About and Contacts pages from my pages sidebar widget, and I can’t without the proper ID.
Thanks!
You’re an angel. This was exactly what I needed. Thank you
thanks! this post was top search result for “how to find wordpress page id”.
thanksssssss….. broooooo….
Its very help me…..
Thanks Ravi! Simple posts like this will live forever.
Thank you very much for this! Really helpful xD
thanks, why cant they just put it in the bloody admin panel somewhere!
i looking this page id, thanks for the explaining.
Great design.
Thanks! it helped alot. I had modified my URL’s to a custom one and then didn’t think I still had page id’s. But this post helped.
Thanks this was helpful
great bro! it really helps when i’m customising my blog… thank u very much! regards from indonesia
Hello,
i have question that in my WordPress with CMS site i have 6 page all, each page have page id
for example ABOUT PAGE url is like
http://localhost/wordpress/?page_id=178
but what i want insted of page_id=178 i want
http://localhost/wordpress/?ABOUT.
Give me the solution for this.
Thanks
Harshida Parmar
Thanks…. That was a complete pain in the ass to find…
thanks dude…
thanks but how would find through code in pages
thks dude
Straight and to the point, thank you very much.
Up to 20 percent of the metals can be lost in a crusher. ,
Another Thanks. This is one of these annoying little things that you find out how to do and then by the time you need to know again the next time you forget and have to find out all over again
. But thanks to Google and sites like yours it’s easily solved
I already fine my page id, thanks for article.
Thank i was wondering about that to find out my past posts. I am using Rosehost Web Hosting and its a very good host for wordpress sites. haven’t got any problems with them.
good point.Thanks so much for sharing these useful informations.
yes you are right.
Sometimes wordpress can make you crazy. Thanks for making it simple
Thanks! Had never needed to know the page id; then today, I was in a hurry to get a new template going – and Google found you,
Hi Ravi,
nice post. I use permalinks and I was searching for the page id…
Thanks Again
George
Great post! this will help me to customize my blog based on the page ID, a real beauty! Thank you for sharing
This helps so much. I was just about to punch my computer in frustration.
Cheers Ravi, clear and concise instructions. Many thanks.
Thanks. Your post solved my problem.
Sooooooo Simple I had to kck myself for not thinking about it!
Much appreciated.
Been struggling with how to noindex a downloads page for some weight loss plr I was making – i needed the wordpress ID and couldn’t work it out. This really helped so thanks a lot!
John
I am looking to change my “blog” page in WordPress. One of my static page links in the navigation is off center. I want to get it looking better. HOW DO I MANIPULATE THE CODE TO DO THIS IN THE BLOG PAGE? http://wisdom360.cc/?page_id=2 WHERE IS THIS FILE FOR ME TO CHANGE? IS IT CSS? IS IT .PHP? I can see the source code, but can’t seem to find where to change it in my template appearences editor. Thanks!
Just what I needed! Thanks, friend!
Ah man – this was driving me nuts!
Thanks!
Thanks a lot, this was really helpful.
Peace
Thanks!
Saved me quite a bit of time. Thanks!
Thanks!
Thanks a lot mate, saved me some time…
Thank you! This was driving me crazy.
Great. I dont know, why they removed the ID from the admin. It was surely a step back in userfriendlyness.
I needed to create a sitemap page for my WP blog ASAP and your post helped me do it very quickly. Thanks a million!
IDs absolutely should be shown in admin just like in Joomla, etc. Incredible that you have to fiddle about to find such basic stuff.
Thank you!!
Great help, thank you very much!!!
ambien buy ativan = ambien where to ambien = ambien overnight ambien = ativan order vicodin = ambien buy vicodin
Thank you for these tipps.
As the first one didn’t work for me and I didn’t want to open lots of pages, I got the idea to look for a plugin for this. And here it is, works fine: http://wordpress.org/extend/plugins/restore-id/
Thanks for the directions. Maybe I have a newer version of wordpress, because I clicked on “shortlink” to get the ID. But, only one of my pages had a number, the other three had a letter at the end. When I was trying to “exclude” from my widget, only the one with the number worked. Any ideas??
Thanks for this info.
mines still having trouble =(
nice one- thanks
Thanks for your post, excellent value for me. I have just been working with pages widget and wanted to exclude some of the pages.
Your second method worked great!!!
Many thanks. One of those little things you can waste hours trying to resolve.
Hi, this is useful information and I knew that for a while now. The reason why I decide to post a reply is that I have an extended question: Let’s say I build a WordPress site with 50 – 100 pages or so…. the work to find the id of each page would take very long time if I want a complete overview. Very often I exclude pages in my solutions and when doing that I must know the id of the page… so is there a solution to list all my pages to create an overview in a text document or similar if I want to simplify the job that otherwise would have taken a long time?
Wowza! Thanks, finally!
Just what I was looking for. Thanks a million! I needed this to exclude some pages from showing adsense. Worked like a charm!
I have been searching every where in my installation to figure this one out. Should have came here first. Thank-you
Thank you 5 million times this took me forever to figure out,
Awesome! This has been driving me nuts trying to figure out what the page id is. I can’t for the life of me understand why it does not display in dashboard. Kinda stupid on the part of WordPress, if you ask me (so, please don’t
. Thanks for this little nugget of gold.
I cant believe it! That’s so easy!!! Thank you so much!!
There is no “Manage” on my dashboard anywhere…. any help?
Thank you SO much for this helpful post…I would have been guessing the page IDs for hours!
thank you for helping me to find page ID.
Why WordPress made it so hard to find?
Impossible for beginners! It seems like such a simple task,
but it isn’t if you don’t know where to look. BIG thanks.
Thanks for the info it was driving me crazy!
Thank you so much, it saves my time searching for page id in wordpress
I am having a though time reading your website great share, great article, very useful for me…thank you
thx for the great knowledge to share with us,really its work will save the time.
legalized marijuana
thx for the great knowledge
Thanks for the info! I believe you were the first page I found on Google. Great job!
great article – many thx for sharing and the wp news. regards tom
I need best page numbering plugins to locate at my ebooksite http://www.ebookserve.com
Hello, Could someone offer me site where i can find best page numbering wordpress plugins for locating these at my ebook site named http://www.ebookserve.com
Thanks for this great post. So, now I can use exclude pages ID at the Sidebar
Great! I will try this out!
Thanks for the great post!
Great share, great article, very usefull for me. Your thought of article is very much creative and interesting to read.
why are we looking for page id?? i mean is really that useful??
I need page numbering plugins urgently. thanks all
I have frequented your port before. The more I take in, the more I keep coming back!
eBookServe: http://www.ebookserve.com
Got a new template that needs page id and google brought me to you. Thank you!
Its simple. But I wonder why WordPress has not given a feature in their admin interface for age id….anyways thanks for this.
Thanks for that tip. I was using url rewriting in my blog and needed to find the id of a few pages I dind’t want to show in a widget. Thanks for the tip. The hard part will be not forgetting where to find it.
Thanks this rocks.
thanks for the useful tips
great post!!!
Many thanks for this. I’ve been wasting my time a lot trying to figure out that the ID is.
Thanks! your post saved me a lot of time. (^^)
Hi. I was trying to find the page id but I’m using permalinks so your tips above don’t help me. Any other way to find them? I’m a newbie with WP.
I also reviewed almost all the comments and some ask the same questions but no one ever answers the question.
Maybe it’s not possible? Maybe I have to go back to the default find the number??
HELP!
Thanks in advance.
Jennifer
This has been a great help for me so thank you.
Pension Advice Manchester
great!! thanks so much! :*
Thank you very much. I have used wordpress more as website and less as blogs. So there are many pages and the top level menus were increasing and affecting my site title. I couldn’t reduce the menu items without knowing the Page Id. Again thanks for this simple but very important information.
Veru usefull for me, thx.
Thanks for the post. However, it doesn’t work if you’ve reset your permanent link structure to include the post name and category for example (better for SEO).
Great post also! Your writing is so fresh in comparison to most other bloggers. Thanks for writing when you get the chance to, I’ll be sure to keep visiting!
Thanks
Md.Alamin Khan
Great article on social media. This article points out some good information about how social media is a big factor on business
Thanks
Liton mia
Thanks so much for this information just what i neede!
I found this valuable:
http://wordpress.org/extend/plugins/reveal-ids-for-wp-admin-25/screenshots/
/Jan