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 general access to specific posts and pages in areas of your site like your sitemap?

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

Your WordPress Post ID is a unique identifier that WordPress assigns automatically to every page or post you create.

Knowing how to find the page or post ID is useful if for example, you want to exclude pages from displaying in your sitemap, or if you want only selected pages to display in the sidebar section of your blog.

In this tutorial, you will learn how to easily locate page and post IDs in a WordPress site.

How To Locate The ID Of A Post Or Page In WordPress: Step-By-Step Tutorial

To find your page or post ID, log into your site’s dashboard and, depending on which ID you are trying to locate, either go to the Pages section (to see a specific page ID) or the Posts area (if you want to find the ID of a particular post) …

WP Dashboard - Pages Menu

(WP Dashboard – Pages Menu)

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

Hover over the title to see Page or Post ID

(Hover over the title to display Post ID)

The unique “ID” value is displayed in the status bar of your web browser. In the image below, the post ID is 5575

Page ID

(Page ID displayed in your web browser)

Note down the ID of the post or page.

WordPress Post Ids/Page IDs – Practical Applications

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

Exclude Posts And Pages From Appearing In A Site Map

Suppose we want to prevent a page whose unique ID is “26” from displaying to visitors on a site map.

Site map plugins typically contain fields that let you specify the IDs of excluded items (e.g. categories, pages, etc.) …

Prevent posts or pages from appearing in your site map

(Preventing posts and pages from showing in your site map)

Prevent Pages And Posts From Showing In Your Sidebar

Another practical use for unique page IDs is to prevent them from displaying in your WordPress sidebar.

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

Prevent pages and posts from appearing in your WordPress sidebar

(Exclude pages or posts from appearing in your WordPress sidebar)

Preventing Posts And Pages From Appearing In Your Sitemap

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

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

(Prevent posts and pages from showing in an XML sitemap|sidebar)

WordPress Plugins – Page IDs

If you would like to regularly access your post or page IDs, then here are a few FREE WordPress plugins that you may find useful:

Reveal IDs

Reveal IDs

(Reveal IDs)

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

Posts Table - ID Column

(Posts Screen – ID Column)

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

WP Dashboard - Settings - Reveal IDs

(WP Dashboard – Settings – Reveal IDs)

To learn more about this plugin, go here: 

99 Robots Show IDs

99 Robots Show IDs

(99 Robots Show IDs WordPress Plugin)

99 Robots Show IDs is a free WordPress plugin that lets users see their pages, posts, links, media, tags, users and categories in the Pages and Posts admin tables. It’s also a very lightweight plugin that supports custom post types  and taxonomies.

For more information about this plugin, go here:


ID Arrays

(ID Arrays)

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

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

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

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

To learn more about this plugin, go here:

Congratulations! Now you know how to easily find WordPress post and page IDs.

How To Find Your WordPress Page And Post IDs


"I love the way your email series "Infinite Web Content Creation Training Series" is documented and presented. It is very absorbing and captivating. The links and tutorials are interesting and educational. This has motivated me to rewrite my content following the concepts I am learning from the email series." - Mani Raju,

Originally published as How To Find Your WordPress Page And Post IDs.