What are page ids in WordPress?
In WordPress, every post, page, and custom post type has a unique identification number known as the ID. This ID is assigned automatically by WordPress when you create a new piece of content.
In WordPress, you can find the post and page IDs through the WordPress admin dashboard or directly from the post/page edit URL.
How to find post and page id in WordPress
Here is a simple guide to find your post/page ID via the Admin dashboard and post/page edit link.
Admin Dashboard:
The easiest way to find a post or page ID is through the WordPress Dashboard. Here’s how you can do it:
- Log in to your WordPress admin dashboard.
- Navigate to the “Pages” or “Posts” section.
- Hover over the page or post title, and you will see the ID displayed in the status bar of your browser. The ID is typically in the format “post=123” or “page=123”, where “123” represents the ID number.
For example, if the URL looks like this: “http://yourwebsite.com/wp-admin/post.php?post=123&action=edit”, the post ID is 123.
Edit Page/Post URL:
- Go to the “Pages” or “Posts” section in the admin dashboard.
- Click on the page or post you want to find the ID for.
- Look at the URL in your browser’s address bar. The ID is usually present as a query parameter and looks like “post=123” or “page=123”.