WordPress For Non-Techies: Free WordPress Tutorials – WPCompendium.org

How To Find Your WordPress Page And Post IDs

Do you need to know how to prevent specific pages or posts from showing in areas of your website like your sitemap?

Often, the easiest way to do this is to filter your pages or posts by ID.

Your WordPress Page ID is a unique number assigned automatically to every post or page created on your site.

Knowing how to locate the page or post ID is useful if for example, you want to exclude pages from showing in your sitemap, or if you want only selected pages to display in your sidebar.

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

Finding The WP Post Or Page ID: Step-By-Step Tutorial

To find your page or post ID, log into your WordPress administration area and, depending on which ID you are trying to locate, either go to the Pages area (for IDs of pages) or the Posts screen (if you need post IDs) …

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

(Hovering over the post title reveals Page or Post ID)

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

(Page ID)

Note down the ID of the post or page.

Page/Post ID – When To Use

Here are some practical uses for WordPress page and post IDs:

Preventing Posts Or Pages From Displaying In A Site Map

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

(Excluding posts or pages from showing in your site map)

Preventing Posts Or Pages From Showing In Your WordPress Sidebar

Another practical use for unique page IDs is to prevent them from showing in your WordPress sidebar.

To do this, 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 …

(Prevent posts and pages from showing in the WordPress sidebar)

Prevent Posts And Pages From Appearing In Your Site’s Sitemap

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

(Excluding posts and pages from displaying in your XML sitemap|sidebar)

WP Plugins – Page/Post IDs

If you want to know the IDs of all your posts or pages inside your admin area when you log in, then here are a few FREE WordPress plugins that you may find useful:

Reveal IDs

(Reveal IDs Plugin For WordPress)

This free plugin displays IDs for posts, pages, 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 …

(Posts Table – ID Column)

To access the plugin settings go to Settings > Reveal IDs

(WP Dashboard – Settings – Reveal IDs)

To download this plugin, go here: 

99 Robots Show IDs

(99 Robots Show IDs Plugin)

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

Download this plugin here:

ID ARRAYS

(ID Arrays – WordPress Plugin)

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)

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 each ID would be time-consuming.

Learn more about this plugin here:

Congratulations! Now you know how to locate the ID of posts and pages in your WP blog.

***

"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)