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 prevent certain posts or pages 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 identifier assigned by WordPress to every page or post you create on your site.

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

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

How To Locate The Unique ID Of Any WordPress Post Or Page: Step-By-Step Tutorial

To locate the unique ID of a page or post, log into your site’s admin and, depending on which ID you are trying to locate, either go to the Pages screen (for IDs of pages) or the Posts screen (if you need a particular post ID) …

WP Dashboard - All Pages

(WP Dashboard – WP Pages Menu)

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

Hover over the title to see Post ID

(Hover over the post title to see Post ID)

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

Page ID displayed in your browser

(Page ID)

Record the ID of the page or post.

Practical Uses For Page/Post IDs

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

Exclude Posts And Pages From Showing In Your Site Map

Suppose we would like to exclude a page whose ID is “26” from displaying to visitors on a site map.

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

Preventing pages or posts from appearing in your site map

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

Preventing Posts Or Pages From Showing In Your WordPress Sidebar

Another practical use for page IDs is to exclude them from appearing in the sidebar.

To do this, just enter all of the WordPress 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 or pages from appearing in the sidebar

(Prevent posts and pages from displaying in your WordPress sidebar)

Exclude Pages And Posts From Displaying In A Sitemap

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

Preventing pages and posts from showing in an XML sitemap|sidebar

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

Plugins – Page IDs

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

Reveal IDs

Reveal IDs - WordPress Plugin

(Reveal IDs WordPress Plugin)

This WordPress plugin displays IDs for posts, pages, links, categories, users, media, comments, link categories, custom post types, custom taxonomies 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

(Settings – Reveal IDs)

Download the plugin here: 

99 Robots Show IDs

99 Robots Show IDs - WordPress Plugin

(99 Robots Show IDs WP Plugin)

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

To learn more about this plugin, go here:

ID ARRAYS

ID Arrays Plugin For WordPress

(ID Arrays Plugin)

This plugin not only displays a column of IDs in 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 Page/Post IDs to your clipboard

(ID Arrays allows you to 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 the process of finding each ID would be time-consuming.

Learn more about this plugin here:

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

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