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

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

Your WordPress Post ID is a unique identifier assigned automatically to every post or page you create on your site.

Knowing your page or post ID can be useful if, for example, you want to prevent pages from showing in your WordPress sitemap, or if you want only certain pages to display in the Pages Widget.

In this step-by-step tutorial, you will learn how to find the post or page ID in your WordPress blog.

How To Find A WordPress Post Or Page ID: Step-By-Step Tutorial

To find the ID of a page or post, log into your WP dashboard area and, depending on which ID you are trying to locate, either go to the Pages section (if you need a page ID) or the Posts screen (to find a post ID) …

WP Dashboard - Pages Menu

(WP Dashboard – WordPress 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 post title displays Page or Post ID

(Hovering over the title reveals Post ID)

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

Page ID displayed in your browser

(Page ID displayed in your browser)

Write down the ID of the post or page.

WordPress Post ID / Page ID – Examples Of Uses

Here are a couple of practical uses for WordPress page or post IDs:

Exclude Posts And Pages From Displaying In A Site Map

Let’s say we want to exclude a page whose ID is “26” from displaying to visitors on a site map.

Site map plugins typically contain fields that let you specify the IDs of excluded items (e.g. categories, pages, etc.) …

Preventing pages and posts from appearing in your site map

(Prevent pages and posts from appearing in your site map)

Preventing Posts And Pages From Displaying In The WordPress Sidebar

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

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 …

Preventing pages or posts from showing in your WordPress sidebar

(Prevent pages or posts from displaying in the WordPress sidebar)

Excluding Pages And Posts From Showing In Your Sitemap

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

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

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

Plugins – Page IDs

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

Reveal IDs

WordPress Plugin - Reveal IDs

(Reveal IDs WordPress Plugin)

This WordPress plugin displays the IDs for pages, posts, links, categories, 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 download this plugin, go 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 posts, pages, media, links, categories, users and tags in the Posts and Pages admin tables. It’s also a very 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 Posts/Pages, 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 lets you 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 finding IDs one by one would be time-consuming.

Learn more about this plugin here:

Congratulations, now you know how to find page and post IDs in a WordPress 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