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

How To Find Your WordPress Page And Post IDs

Ever wondered how to prevent public access to specific pages or posts 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 Post ID is a unique number assigned automatically to every page or post you create.

Knowing how to locate the post or page 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 website.

In this step-by-step tutorial, you will learn how to locate the ID of a page or post in your WP website.

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

To find the unique ID of a page or post, log into your site’s admin and either go to the Pages section (for the ID of a specific page) or the Posts section (if you need IDs of posts) …

(WP Dashboard – All Pages)

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

(Hover over the title to view Post ID)

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

(Page ID)

Write down the ID of the page or post.

Practical Applications For Page IDs/Post IDs

Here are a few practical applications for WordPress post and page IDs:

Excluding Posts And Pages From Appearing In Your Site Map

In the example below, let’s say that you would like to prevent 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 or posts from displaying in your site map)

Prevent Pages And Posts From Showing In Your WordPress Sidebar

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

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

(Preventing pages or posts from appearing in the WordPress sidebar)

Exclude Pages And Posts From Appearing In Your XML Sitemap

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

(Exclude posts and pages from displaying in the XML sitemap|sidebar)

Plugins – Page/Post IDs

If you need to see your page or post IDs inside your admin area when you log in, then here are some WordPress plugins you may find useful:

Reveal IDs

(Reveal IDs Plugin)

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

To access the plugin settings go to Settings > Reveal IDs

(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 posts, pages, links, media, categories, users and tags in the Pages and Posts admin tables. It’s also a super lightweight plugin that supports custom post types  and taxonomies.

Learn more about the plugin here:

ID ARRAYS

(ID Arrays)

This plugin not only displays a column of IDs in your Table of Posts/Pages, it also provides a function that lets you copy a list of selected Post/Page 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 pages where many IDs are required and finding IDs one by one would be time-consuming.

Learn more about the plugin here:

Congratulations! Now you know how to find your post or page ID in WordPress.

***

"If you're new to WordPress, this can stand on its own as a training course and will stay with you as you progress from beginner to advanced and even guru status." - Bruce (Columbus, Ohio)

Recommended Video Courses For WordPress Users

Keyword Research Tools

This video course shows you how to do keyword research using tools like the Google Keyword Planner.

More info: Keyword Research Tools

Recommended Video Courses For WordPress Users

Build A WordPress Site ... Fast!

Need a new website or blog in a hurry?

This video course shows you how to quickly install and configure a WordPress website or blog on your own domain name and be up and running in no time!

More info: Build A WordPress Site ... Fast!

Recommended Video Courses For WordPress Users

Why Your Business Needs WordPress

Learn about the unique features, benefits, and advantages of using WordPress to start or grow your business online.

More info: Why Your Business Needs WordPress

Recommended Video Courses For WordPress Users

WordPress 101: How To Use WordPress

Learn how to unlock the power of the WordPress content management system (CMS) using the many powerful features inside your WordPress administration area.

More info: WordPress 101: How To Use WordPress

Recommended Video Courses For WordPress Users

Google Tools

This video course will help you learn the basics of using Google Tools like Google Analytics and Gmail.

More info: Google Tools

Recommended Video Courses For WordPress Users

WordPress Traffic & User Engagement

Learn how to drive more targeted traffic to your website and discover ways to improve user engagement with your business online.

More info: WordPress Traffic & User Engagement