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.

Learn To Use WPDo you need to know how to prevent certain posts and pages from showing 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 Page Or Post ID is a unique number assigned by WordPress to every post or page created on your site.

Knowing how to locate the post or page ID can be really useful if, for example, you want to exclude pages from displaying in your WordPress sitemap, or if you want only selected pages to show in the Pages Widget.

In this step-by-step tutorial, you will learn how to easily find the WordPress post or page ID.

How To Find A WP Page Or Post ID: Tutorial

To locate your page or post ID, log into your site and either go to the Pages screen (for IDs of pages) or the Posts section (to find IDs of posts) …

WP Dashboard - All Pages

(WP Dashboard – WP Pages Menu)

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

Hover over the page title to view Page or Post ID

(Hovering over the title displays Post ID)

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

Page ID displayed in your web browser

(Page ID displayed in your browser)

Write down the ID of the post or page.

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

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

Preventing Posts And Pages From Appearing In Your Site Map

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

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

Exclude pages or posts from appearing in a site map

(Preventing pages or posts from showing in a site map)

Preventing Posts Or Pages From Appearing In Your WordPress Sidebar

Another useful application for page IDs is to prevent them from displaying in the sidebar section of your site.

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 …

Exclude pages or posts from displaying in the WordPress sidebar

(Exclude posts and pages from showing in the sidebar)

Preventing Pages And Posts From Displaying In An XML Sitemap

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

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

(Preventing posts and pages from displaying in an XML sitemap|sidebar)

WP Plugins – Page IDs

If you would like to know your page or post IDs on a regular basis, then here are a few FREE plugins that you may find useful:

Reveal IDs

Reveal IDs - WordPress Plugin

(Reveal IDs – WordPress Plugin)

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

ID Column

(ID Column)

To access the plugin settings go to Settings > Reveal IDs

Settings - Reveal IDs

(Settings – Reveal IDs)

To download this plugin, go here: Reveal IDs – WP Plugin

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, categories, tags and users in the Posts and Pages admin tables. It’s also a very lightweight plugin that supports custom post types  and taxonomies.

Download the plugin here: 99 Robots Show IDs


ID Arrays - WordPress Plugin

(ID Arrays – WordPress Plugin)

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 Post/Page IDs to your clipboard.

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

(ID Arrays allows you to 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 pages with many IDs required and finding IDs one by one would be time-consuming.

To learn more about this plugin, go here: ID Arrays – WordPress Plugin

Congratulations, now you know how to easily locate your WP page or post ID.

Landing Pages for WordPress


"Learning WordPress has been a huge stumbling block for me. I've been looking for something that covers absolutely everything but doesn't cost an arm and a leg. Thank you so much ... you have just provided me with what I have been looking for! Truly appreciated!" - Tanya

Disclaimer: We have no association with WordPress, Automattic, or any of the WordPress-related products reviewed on this site. We may derive a financial benefit or affiliate commission from the purchase of third-party products mentioned on this website. All images and descriptions sourced from product websites are the copyright of their respective owners, comply with all license terms and agreements of use to the best of our knowledge and are used solely for illustrative or training purposes.


Did you enjoy this tutorial? If so, please use the social links below to share this post with anyone who can benefit from learning about WordPress.

Author: Martin Aranovitch

Martin Aranovitch is the founder of and has authored hundreds of FREE WordPress tutorials for beginners. provides detailed step-by-step tutorials that will teach you how to use WordPress with no coding skills required and at minimal cost!

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