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 IDsDo you need to know how to prevent specific pages or posts from showing in areas of your site like your sitemap?

One of the easiest ways to do this is to filter your pages or posts by their unique ID.

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

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

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

How To Locate A WordPress Page Or Post ID: Tutorial

To find your page or post ID, log into your site and either go to the Pages area (for a page ID) or the Posts section (to find a post ID) …

WP Dashboard - Pages Menu

(WP Dashboard – All Pages)

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

Hover over the title to view Page or Post ID

(Hover over the page title to display Page or Post ID)

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

Page ID

(Page ID displayed in your browser)

Record the ID of the page or post.

WordPress Post Ids/Page IDs – When To Use

Here are a couple of practical ways to use WordPress page or post IDs:

Preventing Posts And Pages From Showing In A Site Map

Let’s say we need to exclude 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 items you want to exclude (e.g. categories, pages, etc.) …

Prevent posts or pages from showing in your site map

(Prevent pages and posts from displaying in a site map)

Preventing Posts And Pages From Appearing In The Sidebar

Another useful application for page IDs is to exclude them from displaying in your WordPress sidebar.

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

Excluding posts or pages from displaying in the sidebar

(Exclude posts and pages from showing in your WordPress sidebar)

Preventing Posts Or Pages From Appearing In A Sitemap

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

Excluding posts and pages from displaying in an XML sitemap|sidebar

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

Plugins – Page/Post IDs

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

Reveal IDs

Reveal IDs

(Reveal IDs – WordPress Plugin)

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

Posts Table - ID Column

(ID Column)

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

Settings - Reveal IDs

(Settings – Reveal IDs)

To learn more about this plugin, go here: 

99 Robots Show IDs

99 Robots Show IDs - WordPress Plugin

(99 Robots Show IDs Plugin)

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

To download this plugin, go here:


ID Arrays

(ID Arrays WordPress Plugin)

ID Arrays 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 Page/Post 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 Post/Page IDs to your clipboard)

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

To download this plugin, go here:

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

How To Find Your WordPress Page And Post IDs


"Wow! I never knew there's so much to learn about WordPress! I bought one of the WordPress for Dummies three years ago, such authors need to be on this course!" - Rich Law, Create A Blog Now