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 viewing of specific pages and 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 number assigned by WordPress to every page or post that you create on your site.

Knowing how to locate the post or page ID can be really useful if for example, you want to exclude pages from displaying in your WordPress sitemap, or if you want only selected pages to display in the Pages Widget.

In this step-by-step tutorial, you will learn how to locate the unique ID of WordPress pages and posts.

How To Locate The Post Or Page ID In Your WP Blog: 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 area (for IDs of pages) or the Posts area (to see a specific post ID) …

WP Dashboard - Pages Menu

(WP Dashboard – All Pages)

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

Hovering over the title displays Post ID

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

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

Page ID

(Page ID displayed in your browser)

Record the ID of the post or page.

Practical Applications For Post ID/Page ID

Here are a few practical applications for post and page IDs:

Prevent Posts And Pages From Showing 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.) …

Prevent pages or posts from showing in your site map

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

Exclude Posts And Pages From Appearing In Your WordPress Sidebar

Another useful application for page IDs is to exclude them from displaying in your 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 …

Prevent posts and pages from showing in the sidebar

(Preventing pages or posts from showing in the WordPress sidebar)

Prevent Posts Or Pages From Appearing In A Sitemap

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

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

(Prevent posts or pages from displaying in an XML sitemap|sidebar)

WordPress Plugins – Page IDs

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

Reveal IDs

WordPress Plugin - Reveal IDs

(Reveal IDs WP Plugin)

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

ID Column

(ID Column)

To access the plugin settings go to Settings > Reveal IDs

WP Dashboard - Settings - Reveal IDs

(Settings Menu – Reveal IDs)

Learn more about the plugin here: 

99 Robots Show IDs

99 Robots Show IDs

(99 Robots Show IDs)

99 Robots Show IDs is another plugin that lets users see their pages, posts, media, links, categories, tags and users in the Pages and Posts admin tables. It’s also a super lightweight plugin that supports custom post types  and taxonomies.

For more information about this plugin, go here:

ID ARRAYS

ID Arrays WordPress 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 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 download this plugin, go here:

Congratulations! Now you know how to easily locate the WP page or post ID.

How To Find Your WordPress Page And Post IDs

Get Thrive Leads for WordPress

***

"I was absolutely amazed at the scope and breadth of these tutorials! The most in-depth training I have ever received on any subject!" - Myke O'Neill, DailyGreenPost.com

***

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

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.