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

How to Find post Id for any Post Type

There are multiple ways to find the post ID, one of the easiest ways to find post id for most of ‘post types’ is from the edit page of that post type.
Hover the mouse on the ‘Edit’ link, at the bottom we can notice post id.

find post id from url

other method, from url while editing the post

Find post id for posts

post type - post

Find post id for pages

page id, post type page

Find post id for Media file pages

form 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

Your email address will not be published. Required fields are marked *