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 and posts from displaying in areas of your site like your sitemap?

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

Your WordPress Post ID is a unique number assigned to every post or page created on your site.

Knowing the page or post ID is quite useful if, for example, you want to exclude pages from showing in your sitemap, or if you want only certain pages to display in your WordPress sidebar.

In this tutorial, you will learn how to find your post or page ID in WordPress.

Finding WordPress Page And Post IDs: Step-By-Step Tutorial

To locate the ID of a page or post, log into your WP administration area and either go to the Pages section (to find a page ID) or the Posts area (if you need the ID of a particular post) …

WP Dashboard - Pages Menu

(WP Dashboard – Pages Menu)

Find 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 Post ID

(Hovering over the post title displays Page or Post ID)

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

Page ID

(Page ID)

Record the ID of the post or page.

Page/Post IDs – Examples Of Uses

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

Prevent Pages And Posts From Showing In A Site Map

Suppose you would like to prevent 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 excluded items (e.g. categories, pages, etc.) …

Prevent pages and posts from showing in a site map

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

Exclude Pages Or Posts From Appearing In Your Sidebar

Another useful application for unique page IDs is to prevent them from showing in the sidebar section of your website.

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

Preventing posts and pages from displaying in the sidebar

(Excluding posts or pages from appearing in your WordPress sidebar)

Preventing Posts Or Pages From Showing In A Sitemap

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

Excluding pages and posts from showing in your XML sitemap|sidebar

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

Plugins – Page/Post IDs

If you want to regularly access the IDs of all your pages or posts, then here are some WordPress plugins you may find useful:

Reveal IDs

Reveal IDs

(Reveal IDs WP Plugin)

This free plugin displays the IDs for posts, pages, 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 Screen – ID Column)

To access the plugin settings go to Settings > Reveal IDs

Settings - Reveal IDs

(Settings – Reveal IDs)

To download this plugin, go 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 lets users see their posts, pages, links, media, users, tags 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

ID Arrays

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

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

Download this plugin here:

Congratulations, now you know how to locate WordPress page and post IDs.

How To Find Your WordPress Page And Post IDs

***

"Your training is the best in the world! It is simple, yet detailed, direct, understandable, memorable, and complete." Andrea Adams, FinancialJourney.org

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

Author: Martin Aranovitch

Martin Aranovitch is the owner of WPCompendium.org and the author of The WordPress User Manual. 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.