Wordpress

Wordpress Get Post ID Tutorial

By

Finding the Post/Page ID


Here are the ways to get your Post/Page ID:


PAGE ID:

  1. Visit your website.


  1. 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.



  1. 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:

  1. Go to “Dashboard”, then select “Posts”. 


  1. Select a post you want to preview. 








  1. 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!


Tags
No items found.

Stay updated with our
latest news & offers

Sign up to get our Newsletter.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.