How To Locate A Page Or Post ID In Your WordPress Blog

Category: | Reading Time: 2 minutes

Ever wondered how to prevent general access to certain pages and posts 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 ID is a unique identifier assigned to every page or post created on your site.

Knowing your page or post ID is quite useful if, for example, you want to prevent pages from displaying in your WordPress sitemap, or if you want only certain pages to display in your sidebar.

In this step-by-step tutorial you will learn how to locate post and page IDs in a WordPress site.

How To Locate WordPress Post And Page IDs: Step-By-Step Tutorial

To locate your page or post ID, log into your WP administration area and either go to the Pages area (if you want a particular page ID), or the Posts screen (for IDs of posts) …

How To Locate The ID Of WordPress Pages And Posts

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

How To Find The Page Or Post ID In A WP Blog

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

How To Find The Post Or Page ID In WordPress

Write down the ID of the post or page.

[thrive_leads id=’18211′]

Page/Post IDs – Practical Uses

Here are some practical ways to use page and post IDs:

Exclude Posts Or Pages From Showing In A Site Map

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

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

How To Locate The Page Or Post ID In WordPress

Prevent Posts And Pages From Appearing In The Sidebar

Another practical use for page IDs is to prevent them from appearing in your sidebar.

To do this, simply enter all of the 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 …

How To Locate The Unique ID Of A WordPress Page Or Post

Exclude Posts Or Pages From Displaying In Your Site’s Sitemap

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

How To Locate The ID Of WordPress Posts And Pages

WordPress Plugins

If you want to know your page or post IDs “at-a-glance”, then here are a few FREE plugins that you may find useful:

Reveal IDs

WordPress Plugin - Reveal IDs

This free WordPress plugin reveals the ids for pages, posts, links, categories, users, media, comments, link categories, custom taxonomies, custom post types and tags. It also adds a sortable column header to your Posts and Pages tables …

WordPress Plugin - Reveal IDs

To access the plugin settings go to Settings > Reveal IDs

How To Locate The WP Page Or Post ID

Learn more about the plugin here: Reveal IDs

99 Robots Show IDs

99 Robots Show IDs

99 Robots Show IDs is another plugin that lets users view their pages, posts, 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.

To download this plugin, go here: WP Plugin – 99 Robots Show IDs

Congratulations! Now you know how to easily locate the unique ID of any post or page in WordPress.


Is A Geek in Your Pocket Right For You?

I created my Geek in Your Pocket Service, because I found so many website owners struggling to keep up with the maintenance and security of their websites.

I believe that maintaining your website doesn’t have to be overwhelming or unfriendly to your budget.  You can have a geek in your pocket that will keep your WordPress website updated and protected at a reasonable price.

My mission is show you how to become a empowered website owner, powered with the tools and support to keep your website in tip top shape and the best way to do that is with my Geek in Your Pocket.

You’re ready, I can feel it and I’d love to be your resident geek!

Discover Your Geek in Your Pocket Now >>

Comments are closed.

Read previous post:
logging out of wordpress
Logging Out Of WordPress – Step-By-Step Tutorial

New to WordPress? This short tutorial shows you how to log out of your WordPress site and things you can...

Close