How to Get the Post ID of any Page in WordPress
Every time you publish a post, page, or other entry in a custom post type, a unique post ID is generated to make it easy to reference and gather all data related to that post only. This guide will show you a fast way to find the post ID of any entry you make in WordPress.
First, login to your WordPress dashboard and go to the post type where the post/page you want is located. To keep this simple, I will use the standard Posts type that comes with every WordPress installation.
After you have scrolled through your lists of published posts to find the one you want, click the title to edit it and go to the posts editor.
If you are viewing your site from the frontend and want to jump straight to the Edit screen that way, simply find the “Edit Post” link in the toolbar at the top of your site (will only show you are logged in).
Once you are on the Edit screen, take a look at the URL bar in your browser and you will see a similar link as below with the post ID:
In the bold text above you can see the post ID is 433.
Now the next time a plugin or a theme asks you for a post ID to show a post, you know where to get it!
See how Marketers Delight helps you create better content using simple tricks like this to make publishing to the web easier.