How to Find the Post/Page ID in WordPress

When you create a new post, a page, or even a tag, upload an image or a video, WordPress generates a unique ID for each of those entries.
An ID is a unique number given to each new entry created. These IDs make it easy for the WordPress system to identify each entry. For example, if you create a new article and name it “Top 10 Richest people in the world”, WordPress will give that article a unique number, let’s say “9”.

When working with some plugins or themes, you may be asked to provide IDs to enable or disable certain functions. To do so, here are 3 simple ways to find the post ID in WordPress:

1. Hover over the title of a post

Go to the posts page by Clicking on All Posts from the left side menu, choose a post and hover over its title. Look at the bottom of your screen and you will see the URL of the post’s edit page which contains the post ID.

Hover over post title.

2. View the URL of the post’s edit page

Go to All posts and click on any post to open the post’s edit page. Look at the URL bar of your browser and you will see the URL of the post’s edit page which contains the post ID.

View post’s edit page URL

3. Install a plugin to show IDs on the dashboard

If you work a lot with post/page IDs, there are many free plugins that can make the job a lot easier such as Reveal IDs, Catch IDs, Show IDs by 99 Robots. These plugins will add a new column to all the admin pages that shows the IDs of all your posts, pages, tags, categories, media, users, links, and comments.

Install a plugin.

From the left side menu, click on Plugins then Add New.
In the search box, enter the name of any plugin mentioned above, for example, “Reveal IDs”, and then click install and activate.
Once activated, a new column that contains the IDs will be added to the post, page, user, tag, media sections.