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 prevent specific posts and pages from showing 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 number assigned to every post or page you create.

Knowing how to locate the page or post ID can be quite useful if for example, you want to exclude pages from displaying in your WordPress sitemap, or if you want only selected pages to show in the sidebar section of your web site.

In this tutorial, you are going to learn how to locate WordPress post and page IDs.

How To Find A Page Or Post ID In WordPress: 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 (if you want the ID of a particular page) or the Posts screen (if you want the ID of a specific post) …

WP Dashboard - Pages Menu - All Pages

(WP Dashboard – WordPress Pages Menu)

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

Hover over the title to see Page or Post ID

(Hovering over the title reveals Page or Post ID)

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

Page ID

(Page ID displayed in your web browser)

Write down the ID of the post or page.

Post ID/Page ID – When To Use

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

Exclude Posts Or Pages From Showing In Your Site Map

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

Most site map plugins contain fields that let you specify the IDs of items you want to exclude (e.g. categories, pages, etc.) …

Preventing pages or posts from appearing in a site map

(Excluding pages and posts from appearing in a site map)

Prevent Posts And Pages From Appearing In The WordPress Sidebar

Another useful application for unique page IDs is to prevent them from displaying in your sidebar.

Simply enter all of the 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 pages and posts from displaying in the sidebar

(Exclude pages and posts from appearing in the sidebar)

Excluding Posts And Pages From Displaying In An XML Sitemap

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

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

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

WP Plugins – Page IDs

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

Reveal IDs

Reveal IDs

(Reveal IDs Plugin For WordPress)

This WordPress plugin reveals 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 Pages and Posts tables …

ID Column

(Posts Screen – ID Column)

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

Settings - Reveal IDs

(Settings Menu – Reveal IDs)

To download this plugin, go here: 

99 Robots Show IDs

WordPress Plugin - 99 Robots Show IDs

(99 Robots Show IDs)

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

To download this plugin, go here:

ID ARRAYS

ID Arrays WP Plugin

(ID Arrays)

This plugin not only adds a column of IDs to your Table of Posts/Pages, 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 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 with many IDs required and finding each ID would be time-consuming.

To download this plugin, go here:

Congratulations, now you know how to easily find the WordPress page or post ID.

How To Find Your WordPress Page And Post IDs

***

"This is AMAZING! I had learnt about how to use WordPress previously, but this covers absolutely everything and more!! Incredible value! Thank you!" - Monique, Warrior Forum