How To Find Your WordPress Page And Post IDs

Learn how to easily find a WordPress post or page ID and why knowing how to locate your post and page IDs can be useful …

How To Find Your WordPress Page And Post IDsEver wondered how to prevent public access to specific pages or posts in areas of your website like your sitemap?

Often, the easiest way to do this is to filter your pages or posts by ID.

Your WordPress Page ID is a unique number assigned to every page or post created on your site.

Knowing how to locate a page or post ID can be quite useful if for example, you want to prevent pages from displaying in your WordPress sitemap, or if you want only selected pages to display in the sidebar.

In this step-by-step tutorial, you are going to learn how to easily locate the ID of WordPress pages and posts.

Finding A WP Page Or Post ID: Tutorial

To find your page or post ID, log into your WP administration area and, depending on which ID you are trying to locate, either go to the Pages screen (for IDs of pages) or the Posts area (to see IDs of posts) …

WP Dashboard - All Pages

(WP Dashboard – All Pages)

Select the page or post that you would like to know the ID of and hover your mouse over its title …

Hover over the post title to view Post ID

(Hover over the title to view Post ID)

The “ID” value is displayed in the status bar of your browser window. In the example below, the ID is 5575

Page ID

(Page ID displayed in your browser)

Note down the ID of the post or page.

Post IDs/Page IDs – Practical Uses

Here are some practical ways to use post or page IDs:

Excluding Posts And Pages From Displaying In Your Site Map

Let’s say we need to exclude a page whose unique ID is “26” from displaying to visitors on a site map.

Many site map plugins have fields that let you specify the IDs of items you want to exclude (e.g. categories, pages, etc.) …

Preventing posts and pages from showing in a site map

(Prevent posts or pages from showing in your site map)

Excluding Posts And Pages From Displaying In Your WordPress Sidebar

Another useful application for page IDs is to exclude them from displaying in the Pages Widget.

Just enter all of the Page IDs for the pages you want to exclude separated by a comma into the Exclude field of the Pages widget, and click the Save button …

Exclude pages or posts from showing in your sidebar

(Excluding posts or pages from displaying in the sidebar)

Exclude Pages And Posts From Displaying In A Sitemap

You can also use post and page IDs to exclude pages or posts from your XML sitemap …

Exclude pages and posts from displaying in your XML sitemap|sidebar

(Exclude posts or pages from displaying in the XML sitemap|sidebar)

Plugins – Page IDs

If you need to see all of the IDs of all your posts or pages ”at-a-glance”, then here are some WordPress plugins you may find useful:

Reveal IDs

Reveal IDs

(Reveal IDs Plugin For WordPress)

This WordPress plugin reveals the IDs for pages, posts, categories, links, users, media, comments, link categories, custom taxonomies, custom post types and tags. It also adds a sortable column header to your Posts and Pages tables …

Posts Screen - ID Column

(Posts Table – ID Column)

You can access the plugin settings by going to Settings > Reveal IDs

Settings - Reveal IDs

(WP Dashboard – Settings – Reveal IDs)

To download this plugin, go here: 

99 Robots Show IDs

99 Robots Show IDs

(99 Robots Show IDs WordPress Plugin)

99 Robots Show IDs is another WordPress plugin that displays your posts, pages, media, links, users, categories and tags in the Posts and Pages admin tables. It’s also a super lightweight plugin that supports custom post types  and taxonomies.

For more information about this plugin, go here:


ID Arrays Plugin

(ID Arrays)

This plugin not only adds a column of IDs to your Table of Posts/Pages, it also provides a function that lets you copy a list of selected Post/Page IDs to your clipboard.

ID Arrays allows you to select and copy a list of Post/Page IDs to your clipboard

(ID Arrays lets you select and copy a list of Page/Post IDs to your clipboard)

This can be very useful if, for example, you are working with a long list of posts where many IDs are required and finding IDs one by one would be time-consuming.

Download this plugin here:

Congratulations! Now you know how to find the unique ID of any WordPress post or page.

How To Find Your WordPress Page And Post IDs


"These tutorials have so much information and are easy to understand. If you use WordPress or plan to in the future these will help you with everything you need to know." - Valisa (Mesa, Arizona)