Every post in WordPress is given a unique ID, but it can be difficult to identify what the ID is unless you know where to look.
In this tutorial, we’re going to show you 2 simple ways of finding your page and post ID.
The Manual Method
In your WordPress Dashboard, go to All Pages or All Posts and go to the edit screen for the page or post you wish to know the ID in.
Next, look at the URL in your web browser’s address bar.
Here, you will find the page ID number displayed within the page URL.
Look for a string in the URL that begins with ?post=<PageID>
The Simple Method
For this method, we will be installing a free plugin called Reveal IDs.
Go to Plugins > Add New and search for the Reveal IDs plugin in the search box.
Install and activate the plugin.
You will now be able to easily see all of the IDs in the Page and Post listings inside your WordPress Dashboard.