How to Find Post ID in WordPress for Posts, Pages, Media files

How to Find Post ID

  • From the WordPress Dashboard:
    • Go to Posts
    • Hover over the title of the post or on edit.
    • Look at the bottom-left corner of our browser; we will see a URL like post=66. Here, 66 is the Post ID.

  • From the Post Editor:
    • Open the post we want to find the ID for.
    • Check the URL in our browser’s address bar.
    • We will see something like ?post=66. The number is our Post ID.

Find post id for pages

From WordPress Dashboard -> Pages

And then click on Page and then click on ‘Edit more details’ link and can get the post id from the URL.

page id, post type page

Find post id for Media file pages

From WordPress Dashboard -> Media

And then click on image and then click on ‘Edit more details’ link and can get the post id from the URL.

media post type - image id

Leave a Comment