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

How to Find post Id for any Post Type

There are multiple way to find post id’s

one of the easiest way to find post id for most of ‘post types’ is from 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 Reply

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