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

Often, the easiest way 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 to every page or post you create.

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

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

Finding WordPress Post And Page IDs: Tutorial

To locate the unique ID of a page or post, log into your site and either go to the Pages screen (for page IDs) or the Posts section (if you want IDs of posts) …

WP Dashboard - All Pages

(WP Dashboard – Pages Menu)

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

Hovering over the title reveals Page or Post ID

(Hovering over the title reveals Page or Post ID)

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

Page ID displayed in your web browser

(Page ID displayed in your web browser)

Write down the ID of the post or page.

Practical Applications For Post ID/Page ID

Here are some practical ways to use WordPress page and post IDs:

Prevent Pages And Posts From Displaying In Your Site Map

Suppose you need to prevent a page whose unique 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 and pages from showing in a site map

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

Preventing Posts And Pages From Showing In The WordPress Sidebar

Another useful application for unique page IDs is to exclude them from showing in the Pages Widget.

Simply enter all of the 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 or posts from displaying in the WordPress sidebar

(Preventing posts or pages from displaying in your sidebar)

Exclude Pages And Posts From Appearing In An XML Sitemap

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

Preventing posts or pages from appearing in an XML sitemap|sidebar

(Preventing pages and posts from appearing in an XML sitemap|sidebar)

Plugins – Page/Post 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

Reveal IDs

(Reveal IDs WordPress Plugin)

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

ID Column

(ID Column)

To access the plugin settings go to Settings > Reveal IDs

WP Dashboard - Settings - Reveal IDs

(WP Dashboard – Settings – Reveal IDs)

To learn more about this plugin, go here: 

99 Robots Show IDs

WP Plugin - 99 Robots Show IDs

(99 Robots Show IDs Plugin For WordPress)

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

Download the plugin here:

ID ARRAYS

ID Arrays Plugin

(ID Arrays)

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

ID Arrays lets you 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 with many IDs required and the process of finding each ID would be time-consuming.

To download this plugin, go here:

Congratulations! Now you know how to locate WordPress page and post IDs.

How To Find Your WordPress Page And Post IDs

***

"I love the way your email series "Infinite Web Content Creation Training Series" is documented and presented. It is very absorbing and captivating. The links and tutorials are interesting and educational. This has motivated me to rewrite my content following the concepts I am learning from the email series." - Mani Raju, www.fortuneinewaste.com