Easy Tips to Help You Find Your WordPress Page and Post ID
You probably already know that obtaining IDs for your WordPress pages, posts, tags, categories or media items can be very handy at times. This piece of information can prove integral when performing certain tasks, however it does take a bit of know-how in order to find it. In this article we’ll show you how to quickly find your WordPress page and post ID.
Finding Your Page ID
As you may know, WordPress classifies all the content. This means that every piece of content has its unique ID. Obtaining your page ID is quite a straightforward process. It consists of two simple steps. First, from your WordPress admin area, navigate to Pages. Then click Edit beneath the page you wish to find the ID for.
All that’s left to now is to check the page URL, locate the post=number (in our example screenshot it’s 31).
As you can clearly see, the process is very simple. The best thing is, the same process applies to posts, tags, categories and media items.
Getting Your Post ID
You were able to see from the previous example how easy it is to find your page ID. The same process applies to posts. Simply navigate to Posts from your backend, and click edit under the desired post.
Same as in the case of page ID, check the post URL and you will find your post ID.
Finding IDs for Tags, Categories and Media Items
Now that you have seen how to quickly find your WordPress page and post ID, we’ll move on to post tags, post categories and media items.
The method is almost identical for tags and categories, with media item IDs having only one slight distinction. Namely, for post tags and categories, you should click Edit, the same as for pages and posts.
However, media items have one minute difference. Once you locate the desired media item, just click on it.
The remainder of the process for tags, categories and media items is nearly the same.
For tags, locate the tag_ID=number in the URL (tag_ID=1 in our example).
Moreover, absolutely the same applies for categories, as you can see from our screenshot below.
As for the media items, check the URL for item=number (item=78 in our example).
Obtaining page and post IDs, as well as IDs for post tags, categories and media items, can prove very significant. Namely you could need them when you wish to query or target specific content. However, this is exactly why finding them is very easy. Hopefully this article helped you find your WordPress page and post ID the easy way.
We hope that you found this article to be helpful. If you liked it, please feel free to check out some of these articles as well!