Finding the ID in your posts and pages

| January 4, 2012 | 0 Comments

Lots of times, you need to know the post or Page ID for various plugins and theme functions for your WordPress site so that they will work as intended. It used to be easy to see the ID but WordPress has changed that visibility as of a few versions ago now. But that doesn’t mean you can’t still find the ID. There are two ways to do it, one manually and of course there are a few plugins that will show you as well.

The Manual Way

In the editor screen of any page or post, you can see the post ID simply by looking in the browser address bar. It shows up right there as part of the address.In this example, the post ID is 255 (post=255). Simple as that, you now have the post or page ID’s you need.

Post ID shows up in the address bar








As expected, there are also a few plugins that will do the job and display the ID for you in an easy manner. Here at WPTeach, we use WP Show IDs, as it works as advertised, simple yet simply adds a column to your all posts or pages dashboard page with the ID for each item.


There are a couple other plugins of note namely, Simply Show IDs which works very similarly to WP Show IDs. If you are looking for some more advanced functionality along the lines of setting who gets to see the ID’s (Author, editor etc.), then you may want to check out Reveal IDs.


Have a favorite from those? Know of other plugins and methods? Let us know in the comments.

The following two tabs change content below.
When not at his day job in the hosting industry, Al teaches WordPress at a Toronto, Ont college and also does corporate WordPress training. As a freelance web developer, he is always busy building sites on the WordPress platform. All this leaves him very little time to ride his Harley and watch NFL football.

Latest posts by adavis (see all)

Tags: ,

Category: Build, Tutorials