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 viewing of specific posts or pages in areas of your website like your sitemap?

One of the easiest ways to do this is to filter your pages or posts by ID.

Your WordPress Post Or Page ID is a unique number assigned to every post or page you create on your site.

Knowing how to locate a post or page ID can be quite useful if for example, you want to exclude pages from showing in your WordPress sitemap, or if you want only selected pages to display in your sidebar.

In this tutorial, you will learn how to easily locate the WP post or page ID.

How To Find The Unique ID Of Pages And Posts In A WordPress Website: Step-By-Step 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 IDs of pages) or the Posts screen (to see post IDs) …

WP Dashboard - All Pages

(WP Dashboard – Pages Menu)

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

Hovering over the post title reveals Post ID

(Hover over the title to see Page or Post ID)

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

Page ID

(Page ID)

Record the ID of the page or post.

WordPress Post ID / Page ID – Practical Applications

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

Preventing Posts Or Pages From Showing In Your Site Map

In the example below, we want 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 items you want to exclude (e.g. categories, pages, etc.) …

Exclude posts or pages from appearing in a site map

(Prevent pages or posts from appearing in a site map)

Preventing Pages Or Posts From Displaying In The WordPress Sidebar

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

Just enter all of the WordPress 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 …

Preventing pages or posts from showing in the WordPress sidebar

(Exclude posts and pages from showing in your WordPress sidebar)

Prevent Pages And Posts From Showing In An XML Sitemap

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

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

(Exclude pages and posts from appearing in your XML sitemap|sidebar)

WP Plugins – Page IDs

If you need to regularly access the IDs of all your pages or posts, then here are some WordPress plugins you may find useful:

Reveal IDs

Reveal IDs

(Reveal IDs WordPress Plugin)

This WordPress plugin reveals the IDs for pages, posts, links, categories, media, users, 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)

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

Settings Menu - Reveal IDs

(WP Dashboard – Settings – Reveal IDs)

Learn more about this plugin here: 

99 Robots Show IDs

99 Robots Show IDs

(99 Robots Show IDs Plugin For WordPress)

99 Robots Show IDs is a free plugin that lets users see their posts, pages, media, links, categories, users 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 WordPress Plugin)

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

ID Arrays allows you to select and copy a list of Page/Post 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 where many IDs are required and the process of finding IDs one by one would be time-consuming.

To download this plugin, go here:

Congratulations, now you know how to locate the ID of any WordPress post or page.

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