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

How To Find Your WordPress Page And Post IDs

Ever wondered how to prevent certain posts and pages from appearing 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 Page ID is a unique number that WordPress assigns to every page or post you create on your site.

Knowing how to find the page or post ID can be very useful if, for example, you want to prevent pages from displaying in your sitemap, or if you want only selected pages to show in the Pages Widget.

In this step-by-step tutorial, you are going to learn how to locate the ID of a WordPress page or post.

Finding WordPress Page And Post IDs: Tutorial

To locate the ID of a page or post, log into your site and either go to the Pages section (for the ID of a specific page) or the Posts section (to see IDs of posts) …

(WP Dashboard – WordPress Pages Menu – All Pages)

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

(Hovering over the title displays Post ID)

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

(Page ID displayed in your browser)

Note down the ID of the page or post.

Uses For Post/Page IDs

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

Preventing Posts Or Pages From Showing In Your Site Map

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

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

Exclude Pages Or Posts From Appearing In Your WordPress Sidebar

Another great use for unique page IDs is to exclude them from appearing in the Pages Widget.

Just enter all of the Page IDs for the pages you want to exclude separated by commas into the Exclude field of the WordPress Pages widget, and click the Save button …

(Excluding posts and pages from displaying in the WordPress sidebar)

Prevent Posts Or Pages From Appearing In Your Sitemap

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

(Preventing posts or pages from appearing in your XML sitemap|sidebar)

Plugins – Page IDs

If you want to see all of the IDs of all your posts or pages on a regular basis, then here are a few FREE WordPress plugins that you may find useful:

Reveal IDs

(Reveal IDs WordPress Plugin)

This plugin displays the 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 Posts and Pages tables …

(Posts Table – ID Column)

To access the plugin settings go to Settings > Reveal IDs

(WP Dashboard – Settings – Reveal IDs)

Download this plugin here: 

99 Robots Show IDs

(99 Robots Show IDs – WordPress Plugin)

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

Download the plugin here:

ID ARRAYS

(ID Arrays Plugin)

This plugin not only displays a column of IDs in your Table of Pages/Posts, 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 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 IDs one by one would be time-consuming.

Download the plugin here:

Congratulations, now you know how to easily locate the ID of pages and posts in WordPress.

***

"This is an awesome training series. I have a pretty good understanding of WordPress already, but this is helping me to move somewhere from intermediate to advanced user!" - Kim Lednum

***

Recommended Video Courses For WordPress Users

How To Optimize WordPress

Learn how to optimize your WordPress site and improve your page loading speed.

More info: How To Optimize WordPress

Recommended Video Courses For WordPress Users

How To Back Up & Restore WordPress Sites

Learn how to safely and automatically backup your WordPress files and database and how to easily restore your WordPress site if something were to happen.

More info: How To Back Up & Restore WordPress Sites

Recommended Video Courses For WordPress Users

How To Set Up A Forum On WordPress

Learn how to set up a forum for your visitors, prospects, customers, members, or affiliates using WordPress.

More info: How To Set Up A Forum On WordPress

Recommended Video Courses For WordPress Users

Using S2 Member

Learn how to set up and configure a WordPress membership site using the S2 Member free WordPress membership plugin.

More info: Using S2 Member

Recommended Video Courses For WordPress Users

Build An e-Commerce Store With WordPress

Learn how to set up an e-commerce store on your WordPress site using e-commerce platforms like WooCommerce and Easy Digital Downloads.

More info: Build An e-Commerce Store With WordPress