How To Find The WordPress Post or Page ID

January 21, 2011 · 5 comments

in WordPress

How To Find The WordPress Post or Page ID

wordpress logoAn Easy Way To Find The Post or Page ID in WordPress

A couple versions back, the post ID was listed in the dashboard and was incredibly easy to find.

Now however, as there has become less need to tinker under the hood of WordPress daily, the WordPress Post ID (which is also the same ID used for Pages) has been removed from the dashboard.

Fortunately though, even without a plugin, there is an easy way to find the Post/Page ID.

It’s important to note that Posts & Pages share a Post ID number type.

In the back-end of your blog (Dashboard), in the left side-bar, go to either Posts or Pages.

This opens a list of all the current posts (or pages) on your blog.

Now hover your mouse over the name of the post we need the wordpress post ID for and then look in the (very) bottom left of your browser for the address that link points to….

Within the link you will spot the magic number of the WordPress Post ID!

(click on the image for a larger view)

That number after “post=” is the number you need for whatever project you are doing that asks for the WordPress Post ID!

If you find you’re doing a lot of this while coding something elaborate, it may feel easier to you to temporarily install “Reveal IDs for WP Admin” which will list the ID numbers next to their respective entry, and remove it as soon as you are finished.

Happy Blogging!
Kimberly Castleberry

PS: The same technique applies for finding the WordPress Category or Tag ID!

 

Get The Inside Scoop!
social tripletKeep up with all the latest social marketing changes!


{ 5 comments… read them below or add one }

rohan January 24, 2011 at 2:57 am

Nice post, very useful not only to newbies but also for pros and plugin developers who regularly need to use the post id function call in the code.

Reply

Kesha March 21, 2011 at 7:05 am

Thanks Kim, I needed this today! I can’t believe the IDs are not just listed along with the other meta data like in the right hand of the post/page. SMH….

Reply

Kimberly Castleberry March 24, 2011 at 4:17 am

I hear ya Kesha, I guess with the focus today being on the non-techy user, that those numbers were scaring some newbies and it was concluded that you probably didn’t need em if you didn’t know how to do a mouse hover! That’s my only guess and only because it makes me laugh. They sadly didn’t consult me on this one!
Kimberly

Reply

George June 10, 2011 at 8:28 am

Thank you Kim! I have a WP sites that someone built back in the 1.x days and I am hacking my way through it.

Reply

Soniya November 3, 2011 at 3:58 am

Nice post. It helped me to solve my issue. Thanx.

Reply

Leave a Comment

CommentLuv badge