
How-To Find a WordPress Page ID and Why You Would Want To
The majority of the time when you want to display specific posts or pages throughout your website in certain areas, you will need to grab your WordPress page ID or post ID, and insert them into other plugins or widgets in order to pull the correct posts out to display.
For example, if you own a cooking website, like Nora Cooks (featured below), and want to display your most popular vegan recipes in your sidebar, you’ll want to find your category ID for your category: vegan, to pull those posts in.

Photo courtesy of – Nora Cooks
Let’s dive into the details of how and where you can find the ID’s for your posts, pages and categories!
Find a WordPress Page ID or Post ID Through a URL
The first step is to login to the WordPress dashboard of your website.
Note: For both ‘Pages’ and ‘Posts’, the ID in the URL is referred to as a post=(ID)

Find a Page ID in WordPress
1. Navigate to your Pages > All Pages
2. Click ‘Edit’ on the page you want the ID
3. Once you are in Edit mode, look at the URL and find the segment that has ‘post=xxxxx’
4. The numbers after the = is the Page ID

Find a Post ID in WordPress
1. Navigate to your Posts > All Posts
2. Click ‘Edit’ on the post you want the ID
3. Once you are in Edit mode, look at the URL and find the segment that has ‘post=xxxxx’
4. The numbers after the = is the Post ID
Included in all our hosting plans.

Included in all our hosting plans.
How-to Find a Category ID in WordPress
Finding a Category ID in WordPress can be a little bit tricky, since your categories are located under your Posts, but you’ll definitely want to know how to do it so you can feature content from specific categories in relevant areas of your website.
Find a Category ID tag in WordPress
1. Navigate to your Posts > Categories
2. Click ‘Edit’ on the category for which you want to find the tag ID
3. Once you are in Edit mode, look at the URL and find the segment that has ‘tag_ID=’
4. The number(s) after the = is the Category ID tag
Page IDs come up when you set up plugins, shortcodes or custom code that only applies to certain pages. For example, you might need an ID to hide a pop-up on one page, exclude a page from search results, or show a widget on a single post.
No. The ID stays the same for as long as the page exists, even if you change the title, content or permalink. If you delete a page and create a new one, the new page will get a new ID.
Most sites use “pretty” permalinks like yoursite.com/about instead of an ID. Hover over or click Edit on the page in your dashboard, and you’ll see the ID in the editor’s address bar as post=123.
Yes. Plugins like Reveal IDs or Show IDs add an ID column to your Pages, Posts and Categories lists, so you can see every ID at a glance without opening each one.
Enjoy this post? Let’s get started working together!

