{"id":41407,"date":"2019-10-15T07:44:48","date_gmt":"2019-10-15T06:44:48","guid":{"rendered":"https:\/\/www.awardspace.com\/?p=41407"},"modified":"2024-02-28T08:30:58","modified_gmt":"2024-02-28T08:30:58","slug":"how-to-get-post-id-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/","title":{"rendered":"How to Get Post ID in WordPress"},"content":{"rendered":"<p>The more you play around with WordPress, the more <a href=\"\/wordpress-tutorials\/add-plugin-wordpress\/\">plugin installations<\/a> you will make. And the more you do that, the higher the chances, for some of them to ask you for a post ID. \u00a0And although you might have a perfectly working and functional WordPress website, here you are \u2013 finding the URL, and the name of your post, but ID?<\/p>\n<p>Post IDs are useful not only for plugins, but some themes, and even widgets could ask you for an ID of a post.<\/p>\n<p>&nbsp;<\/p>\n<h2>What is Post ID?<\/h2>\n<p>As a content management system, WordPress excepts you to have lots and lots of content. And although we see this content as written and stylized words, the database is understanding them as files.<\/p>\n<p>And each of these \u201cfiles\u201d has a unique number assigned to them.<\/p>\n<p>WordPress\u2019 Post ID is this unique number.<\/p>\n<p>&nbsp;<\/p>\n<h2>How to Find Post ID in WordPress?<\/h2>\n<p>Probably the easiest way to find a post ID is from the All posts screen. Going there is becoming something of second nature, once you have enough posts published. On the other hand, if your website is still <a href=\"\/wordpress-tutorials\/make-wordpress-site-private\/\">under construction<\/a>, and you find yourself in a situation where you need a post ID, here is how to go to the All posts page.<\/p>\n<p>First, you need to <a href=\"\/wordpress-tutorials\/enter-wordpress-admin-panel\/\">enter the WordPress Dashboard<\/a>. Once there, head for the Posts option in the sidebar menu.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-41470 alignnone\" src=\"\/wp-content\/uploads\/2019\/06\/posts-all-posts-wordpress-300x265.png\" alt=\"\" width=\"300\" height=\"265\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Now, depending on your <a href=\"\/wordpress-tutorials\/whats-permalink-in-wordpress\/\">permalink settings<\/a>, and whether the post is published, you can either hover over the <strong>view <\/strong>button of the post that you need the ID of or hover over the post\u2019s name.<\/p>\n<p>Doing either of those things will trigger your browser to show you the link you are about to go to.<\/p>\n<p>That link at the bottom of the screen contains the Post ID as well.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-41471 size-large\" src=\"\/wp-content\/uploads\/2019\/06\/post-ID-1024x58.png\" alt=\"\" width=\"1024\" height=\"58\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>More specifically, the post ID will be the number located between the \u201cpost=\u201d and before the \u201c&amp;\u201d symbol.<\/p>\n<p>In the screenshot above, the ID of the post is <strong>130<\/strong>.<\/p>\n<p>If you are currently editing a post in which you want to find the ID, you\u2019ll be able to see it in the Address bar of your browser. Like so:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-41472 size-large\" src=\"\/wp-content\/uploads\/2019\/06\/post-id-in-browser-address-bar-1024x24.png\" alt=\"\" width=\"1024\" height=\"24\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>As usually the Post ID is not often needed or used as part of WordPress, most users don\u2019t know how to find it.<\/p>\n<p>But as you now know, it is effortless and straightforward to find the ID of a post. The same goes for pages. As, although they are differently shown, pages are posts, as far as the WordPress database is concerned.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The more you play around with WordPress, the more plugin installations you will make. And the more you do that, the higher the chances, for some of them to ask you for a post ID. \u00a0And although you might have a perfectly working and functional WordPress website, here you are \u2013 finding the URL, and [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":41469,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[83],"tags":[],"class_list":["post-41407","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-maintenance"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Get Post ID in WordPress | WordPress Tutorial | AwardSpace<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Get Post ID in WordPress | WordPress Tutorial | AwardSpace\" \/>\n<meta property=\"og:description\" content=\"The more you play around with WordPress, the more plugin installations you will make. And the more you do that, the higher the chances, for some of them to ask you for a post ID. \u00a0And although you might have a perfectly working and functional WordPress website, here you are \u2013 finding the URL, and [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"AwardSpace.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/AwardSpace\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-15T06:44:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-28T08:30:58+00:00\" \/>\n<meta name=\"author\" content=\"Lazar Shishmanov, PhD\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@awspace\" \/>\n<meta name=\"twitter:site\" content=\"@awspace\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lazar Shishmanov, PhD\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/\"},\"author\":{\"name\":\"Lazar Shishmanov, PhD\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/13f0961f1cff18623121a6716f08c58b\"},\"headline\":\"How to Get Post ID in WordPress\",\"datePublished\":\"2019-10-15T06:44:48+00:00\",\"dateModified\":\"2024-02-28T08:30:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/\"},\"wordCount\":436,\"publisher\":{\"@id\":\"https:\/\/www.awardspace.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"\",\"articleSection\":[\"Maintenance\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/\",\"url\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/\",\"name\":\"How to Get Post ID in WordPress | WordPress Tutorial | AwardSpace\",\"isPartOf\":{\"@id\":\"https:\/\/www.awardspace.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"\",\"datePublished\":\"2019-10-15T06:44:48+00:00\",\"dateModified\":\"2024-02-28T08:30:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.awardspace.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress Tutorials\",\"item\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Maintenance\",\"item\":\"https:\/\/www.awardspace.com\/wordpress-tutorials\/maintenance\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to Get Post ID in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.awardspace.com\/#website\",\"url\":\"https:\/\/www.awardspace.com\/\",\"name\":\"AwardSpace.com\",\"description\":\"Free Web Hosting with PHP, MySQL, Email Sending, No Ads\",\"publisher\":{\"@id\":\"https:\/\/www.awardspace.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.awardspace.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.awardspace.com\/#organization\",\"name\":\"AwardSpace.com\",\"url\":\"https:\/\/www.awardspace.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png\",\"contentUrl\":\"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png\",\"width\":1759,\"height\":176,\"caption\":\"AwardSpace.com\"},\"image\":{\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/AwardSpace\/\",\"https:\/\/x.com\/awspace\",\"https:\/\/www.instagram.com\/awardspace\/\",\"https:\/\/www.quora.com\/profile\/Award-Space\",\"https:\/\/www.linkedin.com\/company\/19214384\/\",\"https:\/\/www.reddit.com\/user\/AwardSpace\",\"https:\/\/www.pinterest.com\/awardspace\/\",\"https:\/\/www.youtube.com\/user\/AwardspaceWebHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/13f0961f1cff18623121a6716f08c58b\",\"name\":\"Lazar Shishmanov, PhD\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/341ac134090ebf7e8095d20d79485f8652e19c1d00cfef899e40c69ec4ac10cb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/341ac134090ebf7e8095d20d79485f8652e19c1d00cfef899e40c69ec4ac10cb?s=96&d=mm&r=g\",\"caption\":\"Lazar Shishmanov, PhD\"},\"description\":\"Lazar is a marketing specialist with more than ten years of experience in the field, eight of which as part of the marketing department at AwardSpace. Academically, Lazar holds a Bachelor's degree in Public Relations, a Master's degree in Semiotics, Language and Advertising, and is a PhD candidate in Integrated Marketing Communications. You can learn more about Lazar on his personal website.\",\"url\":\"https:\/\/www.awardspace.com\/author\/lazar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Get Post ID in WordPress | WordPress Tutorial | AwardSpace","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"How to Get Post ID in WordPress | WordPress Tutorial | AwardSpace","og_description":"The more you play around with WordPress, the more plugin installations you will make. And the more you do that, the higher the chances, for some of them to ask you for a post ID. \u00a0And although you might have a perfectly working and functional WordPress website, here you are \u2013 finding the URL, and [&hellip;]","og_url":"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/","og_site_name":"AwardSpace.com","article_publisher":"https:\/\/www.facebook.com\/AwardSpace\/","article_published_time":"2019-10-15T06:44:48+00:00","article_modified_time":"2024-02-28T08:30:58+00:00","author":"Lazar Shishmanov, PhD","twitter_card":"summary_large_image","twitter_creator":"@awspace","twitter_site":"@awspace","twitter_misc":{"Written by":"Lazar Shishmanov, PhD","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/#article","isPartOf":{"@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/"},"author":{"name":"Lazar Shishmanov, PhD","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/13f0961f1cff18623121a6716f08c58b"},"headline":"How to Get Post ID in WordPress","datePublished":"2019-10-15T06:44:48+00:00","dateModified":"2024-02-28T08:30:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/"},"wordCount":436,"publisher":{"@id":"https:\/\/www.awardspace.com\/#organization"},"image":{"@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/#primaryimage"},"thumbnailUrl":"","articleSection":["Maintenance"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/","url":"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/","name":"How to Get Post ID in WordPress | WordPress Tutorial | AwardSpace","isPartOf":{"@id":"https:\/\/www.awardspace.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/#primaryimage"},"thumbnailUrl":"","datePublished":"2019-10-15T06:44:48+00:00","dateModified":"2024-02-28T08:30:58+00:00","breadcrumb":{"@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/www.awardspace.com\/wordpress-tutorials\/how-to-get-post-id-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.awardspace.com\/"},{"@type":"ListItem","position":2,"name":"WordPress Tutorials","item":"https:\/\/www.awardspace.com\/wordpress-tutorials\/"},{"@type":"ListItem","position":3,"name":"Maintenance","item":"https:\/\/www.awardspace.com\/wordpress-tutorials\/maintenance\/"},{"@type":"ListItem","position":4,"name":"How to Get Post ID in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/www.awardspace.com\/#website","url":"https:\/\/www.awardspace.com\/","name":"AwardSpace.com","description":"Free Web Hosting with PHP, MySQL, Email Sending, No Ads","publisher":{"@id":"https:\/\/www.awardspace.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.awardspace.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.awardspace.com\/#organization","name":"AwardSpace.com","url":"https:\/\/www.awardspace.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png","contentUrl":"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png","width":1759,"height":176,"caption":"AwardSpace.com"},"image":{"@id":"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/AwardSpace\/","https:\/\/x.com\/awspace","https:\/\/www.instagram.com\/awardspace\/","https:\/\/www.quora.com\/profile\/Award-Space","https:\/\/www.linkedin.com\/company\/19214384\/","https:\/\/www.reddit.com\/user\/AwardSpace","https:\/\/www.pinterest.com\/awardspace\/","https:\/\/www.youtube.com\/user\/AwardspaceWebHosting"]},{"@type":"Person","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/13f0961f1cff18623121a6716f08c58b","name":"Lazar Shishmanov, PhD","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/341ac134090ebf7e8095d20d79485f8652e19c1d00cfef899e40c69ec4ac10cb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/341ac134090ebf7e8095d20d79485f8652e19c1d00cfef899e40c69ec4ac10cb?s=96&d=mm&r=g","caption":"Lazar Shishmanov, PhD"},"description":"Lazar is a marketing specialist with more than ten years of experience in the field, eight of which as part of the marketing department at AwardSpace. Academically, Lazar holds a Bachelor's degree in Public Relations, a Master's degree in Semiotics, Language and Advertising, and is a PhD candidate in Integrated Marketing Communications. You can learn more about Lazar on his personal website.","url":"https:\/\/www.awardspace.com\/author\/lazar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts\/41407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/comments?post=41407"}],"version-history":[{"count":0,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts\/41407\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/media?parent=41407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/categories?post=41407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/tags?post=41407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}