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 general access to specific pages or posts in areas of your site 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 number that WordPress assigns to every post or page that you create on your site.

Knowing how to locate the post or page ID is quite useful if for example, you want to prevent 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 are going to learn how to locate the unique ID of any WordPress post or page.

How To Locate The ID Of Posts And Pages In Your WP Site: Step-By-Step Tutorial

To locate 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 screen (to find a particular page ID) or the Posts screen (if you want post IDs) …

WP Dashboard - WordPress Pages Menu

(WP Dashboard – All Pages)

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

Hovering over the page title displays Page or Post ID

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

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

Page ID

(Page ID displayed in your web browser)

Record the ID of the post or page.

Practical Uses For Post ID/Page ID

Here are a few practical ways to use WordPress post or page IDs:

Preventing Pages And Posts From Showing In A Site Map

In the example below, let’s say that you need to prevent a page whose unique ID is “26” from displaying to visitors on a site map.

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

Exclude pages or posts from displaying in a site map

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

Excluding Pages And Posts From Appearing In Your WordPress Sidebar

Another useful application for page IDs is to exclude them from appearing in your WordPress sidebar.

To do this, just enter all of the 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 …

Prevent posts and pages from showing in the WordPress sidebar

(Prevent posts or pages from showing in your sidebar)

Excluding Posts And Pages From Showing In Your XML Sitemap

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

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

(Exclude pages and posts from showing in the XML sitemap|sidebar)

Plugins – Page/Post IDs

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

Reveal IDs

WP Plugin - Reveal IDs

(Reveal IDs WP Plugin)

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

ID Column

(Posts Screen – ID Column)

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

Settings Menu - Reveal IDs

(Settings – Reveal IDs)

Learn more about this plugin here: 

99 Robots Show IDs

99 Robots Show IDs

(99 Robots Show IDs WP Plugin)

99 Robots Show IDs is another plugin that lets users view their posts, pages, media, links, 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.

For more information about this plugin, go here:

ID ARRAYS

ID Arrays Plugin For WordPress

(ID Arrays Plugin)

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

ID Arrays lets you select and copy a list of Post/Page 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 with many IDs 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 easily locate the unique ID of WordPress pages and posts.

How To Find Your WordPress Page And Post IDs

***

"I have used the tutorials to teach all of my clients and it has probably never been so easy for everyone to learn WordPress ... Now I don't need to buy all these very expensive video courses that often don't deliver what they promise." - Stefan Wendt, Internet Marketing Success Group

***

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

WordPress SecurityWordPress Security

Learn how to keep your WordPress site or blog secure and protected from malware, hackers and brute-force attacks.

More info: WordPress Security

Recommended Video Courses For WordPress Users

Google ToolsGoogle Tools

This video course will help you learn the basics of using Google Tools like Google Analytics and Gmail.

More info: Google Tools

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

Using Password ManagersUsing Password Managers

Password Managers provide an easy and secure way to keep track of all your passwords. This video course shows you how to use two FREE powerful password management tools.

More info: Using Password Managers

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