{"id":42,"date":"2017-12-06T08:15:10","date_gmt":"2017-12-06T08:15:10","guid":{"rendered":"http:\/\/holithemes.com\/blog\/?p=42"},"modified":"2025-05-28T15:19:30","modified_gmt":"2025-05-28T09:49:30","slug":"how-to-find-post-id-in-wordpress-for-posts-pages-media-files","status":"publish","type":"post","link":"https:\/\/holithemes.com\/blog\/how-to-find-post-id-in-wordpress-for-posts-pages-media-files\/","title":{"rendered":"How to Find Post ID in WordPress for Posts, Pages, Media files"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\"><strong>How to Find Post ID<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>From the WordPress Dashboard:\n<ul class=\"wp-block-list\">\n<li>Go to\u00a0<strong>Posts<\/strong><\/li>\n\n\n\n<li>Hover over the title of the post or on edit.<\/li>\n\n\n\n<li>Look at the bottom-left corner of our browser; we will see a URL like\u00a0<code>post=<\/code><strong>66<\/strong>. Here,\u00a0<code>66<\/code>\u00a0is the Post ID.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img decoding=\"async\" width=\"1024\" height=\"509\" src=\"https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2017\/12\/image.png\" alt=\"\" class=\"wp-image-6824\" style=\"width:795px;height:auto\" srcset=\"https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2017\/12\/image.png 1024w, https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2017\/12\/image-300x149.png 300w, https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2017\/12\/image-768x382.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>From the Post Editor:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Open the post we want to find the ID for.<\/li>\n\n\n\n<li>Check the URL in our browser\u2019s address bar.<\/li>\n\n\n\n<li>We will see something like\u00a0<code>?post=66<\/code>. The number is our Post ID.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/t2.techponder.com\/wp-content\/uploads\/2025\/04\/Post-ID-in-URL-scaled.webp\" alt=\"\" class=\"wp-image-91\" style=\"width:788px;height:auto\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Find post id for pages<\/strong><\/h4>\n\n\n\n<p>From WordPress Dashboard -> Pages<\/p>\n\n\n\n<p>And then click on Page and then click on \u2018Edit more details\u2019 link and can get the post id from the URL.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2017\/12\/page-id.png\"><img decoding=\"async\" width=\"820\" height=\"247\" src=\"https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2017\/12\/page-id.png\" alt=\"page id, post type page\" class=\"wp-image-187\" srcset=\"https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2017\/12\/page-id.png 820w, https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2017\/12\/page-id-300x90.png 300w, https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2017\/12\/page-id-768x231.png 768w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Find post id for Media file pages<\/strong><\/h4>\n\n\n\n<p>From WordPress Dashboard -> Media<\/p>\n\n\n\n<p>And then click on image and then click on \u2018Edit more details\u2019 link and can get the post id from the URL.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2017\/12\/media-id.png\"><img decoding=\"async\" width=\"712\" height=\"285\" src=\"https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2017\/12\/media-id.png\" alt=\"media post type - image id\" class=\"wp-image-189\" srcset=\"https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2017\/12\/media-id.png 712w, https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2017\/12\/media-id-300x120.png 300w\" sizes=\"(max-width: 712px) 100vw, 712px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure id=\"4460\" class=\"graf graf--figure graf-after--p graf--trailing\">\n<div class=\"aspectRatioPlaceholder is-locked\"><\/div>\n<\/figure>\n","protected":false},"excerpt":{"rendered":"<p>How to Find Post ID Find post id for pages From WordPress Dashboard -> Pages And then click on Page and then click on \u2018Edit more details\u2019 link and can get the post id from the URL. Find post id for Media file pages From WordPress Dashboard -> Media And then click on image and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[2,7],"tags":[3,4,5,6],"class_list":["post-42","post","type-post","status-publish","format-standard","hentry","category-how-to","category-wordpress","tag-media","tag-pages","tag-post-id","tag-posts"],"_links":{"self":[{"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":0,"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"wp:attachment":[{"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}