For many users, finding the WordPress Page ID or post IDs is not so easy. This is because WordPress doesn’t directly display these IDs in the admin screens.

Here’s how you can find the Page IDs in WordPress. This also works for attachments & other post types.

One Way

After you’ve logged into your WordPress dashboard, Click Pages > All Pages in your admin menus. This will take you to a list of all your Pages. From the list of Pages, hover over the Page title you want to find the ID of. Every time you hover over, your browser’s status bar will show you a URL like this.

http://www.xyz.com/wp-admin/post.php?post=2&action=edit

In the part of the URL that says "?post=2", the number after the "=" sign is the Page ID (2 in this case).

Another

If you don’t see anything when you hover over, click on the Page link to open edit Page screen. Now, look in your browser’s address bar and you’ll find the URL in the following format.

http://www.xyz.com/wp-admin/post.php?post=2&action=edit

Again, in the part of the URL that says "?post=2", the number after the "=" sign is the Page ID (2 in this case).