Finding the Post/Page ID
Here are the ways to get your Post/Page ID:
PAGE ID:
- Visit your website.
- If you check the URL bar, it will not show your page ID. Go to “Inspect” tools by right clicking on your page, then selecting “Inspect”. Or you can use the shortcut Ctrl+Shift+I.
- In the “Elements” tab you can find the “body class”. It contains the Page ID. In this example, the Page ID is 2366.
You can also use “Find” (Ctrl+F) and type in “Page ID” to highlight the Page ID.
POST ID:
- Go to “Dashboard”, then select “Posts”.
- Select a post you want to preview.
- The URL bar contains your Post ID which is 6398 in this example. You can use these numbers if you’re pulling an ID for a post/page.
You can also go to your “Inspect” tools by right clicking, then selecting “Inspect” or Press Ctrl+F. If you check the article, you can find the Post ID.
Hope this helps!