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 public access to certain posts or 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 Post Or Page ID is a unique identifier that WordPress assigns automatically to every post or page created on your site.

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

In this step-by-step tutorial, you are going to learn how to locate WordPress post and page IDs.

How To Find Page And Post IDs In Your WP Site: Tutorial

To find your page or post ID, log into your site’s dashboard and, depending on which ID you are trying to locate, either go to the Pages section (to find page IDs) or the Posts screen (to find the ID of a specific post) …

WP Dashboard - All Pages

(WP Dashboard – WordPress Pages Menu)

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

Hovering over the post title displays Page or Post ID

(Hover over the title to display Post ID)

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

Page ID

(Page ID)

Record the ID of the page or post.

WordPress Post/Page IDs – When To Use

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

Exclude Posts And Pages From Displaying In A Site Map

Let’s say we would like to prevent a page whose ID is “26” from displaying to visitors on a site map.

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

Excluding posts or pages from showing in a site map

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

Excluding Pages And Posts From Displaying In The WordPress Sidebar

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

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

Prevent pages and posts from appearing in the sidebar

(Prevent pages or posts from showing in your sidebar)

Excluding Posts And Pages From Showing In A Sitemap

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

Prevent pages and posts from appearing in your XML sitemap|sidebar

(Excluding posts or pages from showing in your XML sitemap|sidebar)

WP Plugins – Page/Post IDs

If you want to regularly access your post or page IDs, then here are a few FREE plugins that you may find useful:

Reveal IDs

WordPress Plugin - Reveal IDs

(Reveal IDs)

This free WordPress plugin displays IDs for pages, posts, 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 …

Posts Screen - ID Column

(ID Column)

To access the plugin settings go to Settings > Reveal IDs

Settings - Reveal IDs

(WP Dashboard – Settings – Reveal IDs)

Download the plugin here: 

99 Robots Show IDs

WordPress Plugin - 99 Robots Show IDs

(99 Robots Show IDs WP Plugin)

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

Download this plugin here:

ID ARRAYS

ID Arrays WP Plugin

(ID Arrays)

This plugin not only adds a column of IDs to your Table of Pages/Posts, 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 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 posts where many IDs are required and finding IDs one by one would be time-consuming.

To download this plugin, go here:

Congratulations, now you know how to locate your post or page ID in a WP site.

How To Find Your WordPress Page And Post IDs

***

"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

Using S2 MemberUsing S2 Member

Learn how to set up and configure a WordPress membership site using the S2 Member free WordPress membership plugin.

More info: Using S2 Member

Recommended Video Courses For WordPress Users

Build An e-Commerce Store With WordPressBuild An e-Commerce Store With WordPress

Learn how to set up an e-commerce store on your WordPress site using e-commerce platforms like WooCommerce and Easy Digital Downloads.

More info: Build An e-Commerce Store With WordPress

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 A Forum On WordPressHow To Set Up A Forum On WordPress

Learn how to set up a forum for your visitors, prospects, customers, members, or affiliates using WordPress.

More info: How To Set Up A Forum On WordPress

Recommended Video Courses For WordPress Users

How To Back Up & Restore WordPress SitesHow To Back Up & Restore WordPress Sites

Learn how to safely and automatically backup your WordPress files and database and how to easily restore your WordPress site if something were to happen.

More info: How To Back Up & Restore WordPress Sites

Author: Martin Aranovitch

Martin Aranovitch is the founder of WPCompendium.org and the author of The Small Business Digital Manager. WPCompendium.org 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.