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 exclude general access to certain 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 their unique ID.

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

Knowing how to locate the page or post ID is really useful if, for example, you want to exclude pages from showing in your WordPress sitemap, or if you want only selected pages to display in the sidebar section of your web site.

In this step-by-step tutorial, you will learn how to easily locate post and page IDs in WordPress.

How To Find A WordPress Page Or Post ID: Step-By-Step Tutorial

To find your page or post ID, log into your WordPress admin area and either go to the Pages screen (to find IDs of pages) or the Posts section (if you need post IDs) …

WP Dashboard - Pages Menu

(WP Dashboard – 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 post title to display Page or Post ID

(Hover over the page title to display Post ID)

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

Page ID displayed in your web browser

(Page ID)

Record the ID of the page or post.

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

Here are a few examples of using post or page IDs:

Excluding Pages Or Posts From Showing In Your Site Map

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

Prevent posts or pages from displaying in your site map

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

Prevent Posts And Pages From Showing In The WordPress Sidebar

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

To do this, simply 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

(Excluding pages or posts from appearing in the sidebar)

Exclude Posts And Pages From Displaying In A Sitemap

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

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

(Prevent posts and pages from displaying in your XML sitemap|sidebar)

WP Plugins – Page/Post IDs

If you need to regularly access the IDs of all your pages or posts, then here are a few FREE WordPress plugins you may find useful:

Reveal IDs

WP Plugin - Reveal IDs

(Reveal IDs WP Plugin)

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

ID Column

(Posts Table – ID Column)

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

Settings - Reveal IDs

(Settings – Reveal IDs)

Learn more about this plugin here: 

99 Robots Show IDs

99 Robots Show IDs

(99 Robots Show IDs WordPress Plugin)

99 Robots Show IDs is another useful WordPress plugin that displays your pages, posts, media, links, users, categories and tags in the Posts and Pages 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)

ID Arrays 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 allows you to select and copy a list of Page/Post 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.

To learn more about this plugin, go here:

Congratulations, now you know how to find the unique ID of a WordPress page or post.

How To Find Your WordPress Page And Post IDs


"This is an awesome training series. I have a pretty good understanding of WordPress already, but this is helping me to move somewhere from intermediate to advanced user!" - Kim Lednum

Recommended Video Courses For WordPress Users

How To Use Amazon S3How To Use Amazon S3

Learn how to set up and use Amazon S3 to upload, store, manage, and protect your site’s images, large media files, downloadable files, stream videos and more.

More info: How To Use Amazon S3

Recommended Video Courses For WordPress Users

How To Optimize WordPressHow To Optimize WordPress

Learn how to optimize your WordPress site and improve your page loading speed.

More info: How To Optimize WordPress

Recommended Video Courses For WordPress Users

How To Set Up WordPress On LocalhostHow To Set Up WordPress On Localhost

Learn how to install, set up, and locally host a fully functioning WordPress site on your computer.

More info: How To Set Up WordPress On Localhost

Recommended Video Courses For WordPress Users

How To Use cPanelHow To Use cPanel

cPanel is a powerful and simple-to-use web hosting management software application that gives website owners the ability to quickly and easily manage their servers and websites using a simple and intuitive dashboard.

This video course will teach you how to use the main features of cPanel to manage your web hosting.

More info: How To Use cPanel

Recommended Video Courses For WordPress Users

How To Use FTPHow To Use FTP

This video course shows you how to use FTP (File Transfer Protocol) to transfer and upload files between your hard drive and your server using a free FTP program called Filezilla.

More info: How To Use FTP

Author: Martin Aranovitch

Martin Aranovitch is the owner of and the author of The WordPress User Manual. provides hundreds of FREE tutorials that show you how to use WordPress to grow your business online with no coding skills required! Get our FREE "101+ WordPress Tips, Tricks & Hacks For Non-Techies" e-course with loads of useful WordPress tips!

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