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 exclude public viewing of certain posts and pages in areas of your website like your sitemap?

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

Your WordPress Page ID is a unique number assigned by WordPress automatically to every post or page you create.

Knowing how to locate the page or post ID is useful if for example, you want to exclude pages from showing in your 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 find WordPress page and post IDs.

How To Find WordPress Page And Post IDs: Tutorial

To find the unique ID of any page or post, log into your site’s admin and either go to the Pages screen (if you want a particular page ID) or the Posts area (for the ID of a particular post) …

WP Dashboard - WordPress 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 the title …

Hover over the title to display Page or Post ID

(Hover over the post title to display Post ID)

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

Page ID

(Page ID displayed in your web browser)

Record the ID of the post or page.

Post ID/Page ID – When To Use

Here are a few examples of using WordPress post and page IDs:

Preventing Posts Or Pages From Appearing In A Site Map

In the example below, we want to exclude a page whose unique ID is “26” from displaying to visitors on a site map.

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

Preventing posts and pages from appearing in your site map

(Prevent pages or posts from appearing in a site map)

Exclude Posts And Pages From Appearing In Your WordPress Sidebar

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

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 …

Preventing pages or posts from displaying in your sidebar

(Preventing pages and posts from appearing in the WordPress sidebar)

Preventing Pages Or Posts From Displaying In A Sitemap

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

Exclude posts or pages from showing in the XML sitemap|sidebar

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

WordPress Plugins – Page/Post IDs

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

Reveal IDs

Reveal IDs - WP Plugin

(Reveal IDs)

This plugin reveals the IDs for posts, pages, categories, links, media, users, comments, link categories, 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)

Download this plugin here: 

99 Robots Show IDs

99 Robots Show IDs

(99 Robots Show IDs Plugin For WordPress)

99 Robots Show IDs is another useful plugin that displays your pages, posts, media, links, 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.

Learn more about the plugin here:


ID Arrays - WordPress Plugin

(ID Arrays – WordPress Plugin)

ID Arrays not only displays a column of IDs in 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 Post/Page 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 each ID would be time-consuming.

Download this plugin here:

Congratulations, now you know how to easily find a page or post ID in WordPress.

How To Find Your WordPress Page And Post IDs

Get Thrive Leads for WordPress


"This is AMAZING! I had learnt about how to use WordPress previously, but this covers absolutely everything and more!! Incredible value! Thank you!" - Monique, Warrior Forum


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 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 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

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

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.