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 certain posts and pages from showing 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 identifier assigned automatically to every page or post created on your site.

Knowing how to find the post or page ID can be very useful if, for example, you want to prevent pages from displaying in your sitemap, or if you want only certain pages to show in your sidebar.

In this tutorial, you will learn how to easily locate page and post IDs in your WP website.

Finding The WP Post Or Page ID: Step-By-Step Tutorial

To locate the unique ID of any page or post, log into your WordPress dashboard area and either go to the Pages section (to see the ID of a particular page) or the Posts area (to see IDs of posts) …

WP Dashboard - Pages Menu

(WP Dashboard – Pages Menu – All Pages)

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

Hover over the post title to see Page or Post ID

(Hover over the title to display Post ID)

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

Page ID displayed in your browser

(Page ID displayed in your web browser)

Record the ID of the page or post.

Post IDs/Page IDs – What Can It Be Used For?

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

Preventing Posts And Pages From Appearing In Your Site Map

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

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

Excluding pages and posts from appearing in your site map

(Excluding posts and pages from showing in a site map)

Exclude Posts And Pages From Displaying In Your Sidebar

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

To do this, just enter all of the Page IDs for the pages you want to exclude separated by commas into the Exclude field of the Pages widget, then click the Save button …

Exclude pages and posts from appearing in the sidebar

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

Prevent Posts Or Pages From Appearing In Your XML Sitemap

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

Excluding posts or pages from appearing in an XML sitemap|sidebar

(Excluding posts and pages from showing in the XML sitemap|sidebar)

Plugins – Page/Post IDs

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

Reveal IDs

Reveal IDs - WordPress Plugin

(Reveal IDs Plugin)

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

ID Column

(ID Column)

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

WP Dashboard - Settings - Reveal IDs

(Settings – Reveal IDs)

To learn more about this plugin, go here: 

99 Robots Show IDs

WordPress Plugin - 99 Robots Show IDs

(99 Robots Show IDs Plugin)

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

Learn more about the plugin here:


ID Arrays

(ID Arrays Plugin)

ID Arrays not only displays a column of IDs in 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 lets you select and copy a list of Post/Page 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 pages where many IDs are required and finding IDs one by one would be time-consuming.

Learn more about this plugin here:

Congratulations, now you know how to easily locate post and page IDs in your WordPress website.

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,