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 public viewing of specific posts and pages 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 Page Or Post ID is a unique number assigned automatically to every page or post you create on your site.

Knowing the page or post ID is 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 step-by-step tutorial, you will learn how to locate WordPress post and page IDs.

Finding A WP Post Or Page ID: Tutorial

To find 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 section (to find the ID of a specific page) or the Posts section (to find a post ID) …

WP Dashboard - All Pages

(WP Dashboard – WordPress Pages Menu – All Pages)

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

Hover over the title to display Post ID

(Hovering over the title displays Post ID)

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

Page ID displayed in your web browser

(Page ID)

Record the ID of the page or post.

Applications For Page/Post ID

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

Prevent Pages And Posts From Displaying In A Site Map

Let’s say you would like to exclude a page whose unique ID is “26” from displaying to visitors on a site map.

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

Prevent posts or pages from showing in your site map

(Excluding posts and pages from displaying in your site map)

Exclude Pages And Posts From Showing In The WordPress Sidebar

Another practical use for page IDs is to exclude them from displaying in the sidebar section of your website.

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, and click the Save button …

Prevent pages and posts from showing in your sidebar

(Excluding pages or posts from showing in the sidebar)

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

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

(Excluding posts or pages from appearing in your XML sitemap|sidebar)

Plugins – Page/Post IDs

If you want to see the IDs of your pages or posts ”at-a-glance”, then here are some WordPress plugins that you may find useful:

Reveal IDs

Reveal IDs

(Reveal IDs)

This free WordPress plugin displays 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)

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

WP Dashboard - Settings - Reveal IDs

(Settings Menu – Reveal IDs)

To download this plugin, go here: 

99 Robots Show IDs

99 Robots Show IDs

(99 Robots Show IDs – WordPress Plugin)

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

To learn more about this plugin, go here:

ID ARRAYS

ID Arrays WP Plugin

(ID Arrays)

ID Arrays not only displays a column of IDs in your Table of Pages/Posts, it also provides a very useful function that lets you copy a list of selected Page/Post IDs to your clipboard.

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

To download this plugin, go here:

Congratulations! Now you know how to locate your post or page ID in your WordPress website.

How To Find Your WordPress Page And Post IDs

***

"These tutorials have so much information and are easy to understand. If you use WordPress or plan to in the future these will help you with everything you need to know." - Valisa (Mesa, Arizona)