{"id":17062,"date":"2024-03-07T10:02:49","date_gmt":"2024-03-07T10:02:49","guid":{"rendered":"https:\/\/www.webhosting.uk.com\/kb\/?p=17062"},"modified":"2026-03-03T11:32:58","modified_gmt":"2026-03-03T11:32:58","slug":"how-to-find-wordpress-post-ids-and-page-ids","status":"publish","type":"post","link":"https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/","title":{"rendered":"How to find WordPress post IDs and page IDs"},"content":{"rendered":"<p class=\"MsoNormal\">This article will help us understand how to find WordPress post IDs and page IDs. These can be useful for various purposes, such as customising themes, creating custom queries, or troubleshooting.<\/p>\n<p class=\"MsoNormal\">Here is how to find them-<\/p>\n<h2><strong>From WordPress Dashboard &#8211;<\/strong><\/h2>\n<ol>\n<li>Log in to WordPress.<\/li>\n<li>Navigate to \u201cPosts\u201d or \u201cPages\u201d depending on whether you want to find the ID of a post or page.<br \/>\n<a href=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a420441.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17070 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a420441.png\" alt=\"WordPress Dashboard\" width=\"598\" height=\"360\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a420441.png 598w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a420441-300x181.png 300w\" sizes=\"auto, (max-width: 598px) 100vw, 598px\" \/><\/a><\/li>\n<li>Move your mouse cursor over the title of the post or page. Look at the bottom left corner of your internet browser. You will see a small window showing the website address (URL). Find the number after &#8220;post=&#8221; for posts or &#8220;page=&#8221; for pages in that website address. That number is the post or page ID.<br \/>\n<a href=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a40db12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17067 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a40db12.png\" alt=\"website url at bottom\" width=\"437\" height=\"122\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a40db12.png 437w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a40db12-300x84.png 300w\" sizes=\"auto, (max-width: 437px) 100vw, 437px\" \/><\/a><\/li>\n<\/ol>\n<h2><strong>Using WordPress Editor &#8211;<\/strong><\/h2>\n<ol>\n<li>Navigate to the post or page you want to find the ID for.<br \/>\n<a href=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a3dbf8a.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17065 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a3dbf8a.png\" alt=\"Posts\" width=\"161\" height=\"153\" \/><\/a><\/li>\n<li>Open the post or page in the WordPress editor.<\/li>\n<li>Look at the URL in your browser\u2019s address bar. The post or page ID is the number that comes after post= for posts or page= for pages in the URL.<br \/>\n<a href=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a42b541.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17071 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a42b541.png\" alt=\"page ID number\" width=\"737\" height=\"118\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a42b541.png 737w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a42b541-300x48.png 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/a><\/li>\n<\/ol>\n<h2><b>Using phpMyAdmin (Advanced Method) &#8211;<\/b><\/h2>\n<ol>\n<li>Log in to your hosting control panel and <a href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-access-phpmyadmin-in-cpanel\/\">access phpMyAdmin<\/a>.<br \/>\n<a href=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a4f62dc.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17072 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a4f62dc.png\" alt=\"Databases\" width=\"779\" height=\"188\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a4f62dc.png 779w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a4f62dc-300x72.png 300w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a4f62dc-768x185.png 768w\" sizes=\"auto, (max-width: 779px) 100vw, 779px\" \/><\/a><\/li>\n<li>Select your WordPress database from the list on the left.<\/li>\n<li>Locate and click on the \u201cwp_posts\u201d table (replace wp_ with your WordPress database prefix if it is different).<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a5865ed.png\" alt=\"List of databases\" width=\"221\" height=\"370\" \/><span style=\"font-family: 'Times New Roman', serif; font-size: 16pt;\"><br \/>\n<\/span><\/li>\n<li>You will see a list of all your posts. Find the post you are interested in and look for the corresponding ID in the \u201cID\u201d column.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a5abe16.png\" alt=\"Id\" width=\"972\" height=\"346\" \/><span style=\"font-family: 'Times New Roman', serif; font-size: 16pt;\"><br \/>\n<\/span><\/li>\n<\/ol>\n<h2>Using Functions.php (Developer Method) &#8211;<\/h2>\n<ol>\n<li>If you are comfortable with the code, you can use the following code snippet in your theme\u2019s functions.php file to display the ID of a post or page-<br \/>\nfunction get_post_id() {<br \/>\nglobal $post;<br \/>\nreturn $post-&gt;ID;<br \/>\n}<\/li>\n<li>Then, you can use the get_post_id() function wherever you need to display the post or page ID within your theme.<\/li>\n<\/ol>\n<p class=\"MsoNormal\">Was not it useful to you? We hope you understood it well. These methods should help you find the post IDs and page IDs in WordPress, depending on your level of expertise and preference. However, if you encounter any issues or have further queries; contact our support team at your earliest.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article will help us understand how to find WordPress post IDs and page IDs. These can be useful for various purposes, such as customising themes, creating custom queries, or&hellip;<\/p>\n<p><a href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/\" class=\"more-link\">Read More<\/a><\/p>\n<div class='heateorSssClear'><\/div><div  class='heateor_sss_sharing_container heateor_sss_horizontal_sharing' data-heateor-sss-href='https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/'><div class='heateor_sss_sharing_title' style=\"font-weight:bold\" >Spread the love<\/div><div class=\"heateor_sss_sharing_ul\"><a aria-label=\"Facebook\" class=\"heateor_sss_facebook\" href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-find-wordpress-post-ids-and-page-ids%2F\" title=\"Facebook\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg\" style=\"background-color:#0765FE;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"X\" class=\"heateor_sss_button_x\" href=\"https:\/\/twitter.com\/intent\/tweet?text=How%20to%20find%20WordPress%20post%20IDs%20and%20page%20IDs&url=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-find-wordpress-post-ids-and-page-ids%2F\" title=\"X\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_x\" style=\"background-color:#2a2a2a;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg width=\"100%\" height=\"100%\" style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M21.751 7h3.067l-6.7 7.658L26 25.078h-6.172l-4.833-6.32-5.531 6.32h-3.07l7.167-8.19L6 7h6.328l4.37 5.777L21.75 7Zm-1.076 16.242h1.7L11.404 8.74H9.58l11.094 14.503Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"Linkedin\" class=\"heateor_sss_button_linkedin\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-find-wordpress-post-ids-and-page-ids%2F\" title=\"Linkedin\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_linkedin\" style=\"background-color:#0077b5;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path d=\"M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z\" fill=\"#fff\"><\/path><\/svg><\/span><\/a><\/div><div class=\"heateorSssClear\"><\/div><\/div><div class='heateorSssClear'><\/div>","protected":false},"author":28,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1885],"tags":[720],"class_list":["post-17062","post","type-post","status-publish","format-standard","hentry","category-wordpress-hosting","tag-wordpress-tips"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.9 (Yoast SEO v27.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to find WordPress post IDs and page IDs - WHUK<\/title>\n<meta name=\"description\" content=\"This article explains how to find WordPress post IDs and page IDs. Follow the simple steps mentioned in this article.\" \/>\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.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to find WordPress post IDs and page IDs\" \/>\n<meta property=\"og:description\" content=\"This article explains how to find WordPress post IDs and page IDs. Follow the simple steps mentioned in this article.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/\" \/>\n<meta property=\"og:site_name\" content=\"Webhosting UK Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhostingukcom\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-07T10:02:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-03T11:32:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a420441.png\" \/>\n\t<meta property=\"og:image:width\" content=\"598\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Victor G\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@WebhostingUKcom\" \/>\n<meta name=\"twitter:site\" content=\"@WebhostingUKcom\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-find-wordpress-post-ids-and-page-ids\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-find-wordpress-post-ids-and-page-ids\\\/\"},\"author\":{\"name\":\"Victor G\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/person\\\/ea067684eae84c2b8b49a81c69407297\"},\"headline\":\"How to find WordPress post IDs and page IDs\",\"datePublished\":\"2024-03-07T10:02:49+00:00\",\"dateModified\":\"2026-03-03T11:32:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-find-wordpress-post-ids-and-page-ids\\\/\"},\"wordCount\":375,\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-find-wordpress-post-ids-and-page-ids\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/Snag_a420441.png\",\"keywords\":[\"WordPress Tips\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-find-wordpress-post-ids-and-page-ids\\\/\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-find-wordpress-post-ids-and-page-ids\\\/\",\"name\":\"How to find WordPress post IDs and page IDs - WHUK\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-find-wordpress-post-ids-and-page-ids\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-find-wordpress-post-ids-and-page-ids\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/Snag_a420441.png\",\"datePublished\":\"2024-03-07T10:02:49+00:00\",\"dateModified\":\"2026-03-03T11:32:58+00:00\",\"description\":\"This article explains how to find WordPress post IDs and page IDs. Follow the simple steps mentioned in this article.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-find-wordpress-post-ids-and-page-ids\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-find-wordpress-post-ids-and-page-ids\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-find-wordpress-post-ids-and-page-ids\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/Snag_a420441.png\",\"contentUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/Snag_a420441.png\",\"width\":598,\"height\":360},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-find-wordpress-post-ids-and-page-ids\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to find WordPress post IDs and page IDs\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\",\"name\":\"Webhosting UK Knowledge Base\",\"description\":\"Expert Insights on Hosting, Development, Security, Marketing, and SEO\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\"},\"alternateName\":\"WHUK\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\",\"name\":\"Webhosting UK\",\"alternateName\":\"WHUK\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/WHUK-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/WHUK-logo-1.png\",\"width\":1200,\"height\":628,\"caption\":\"Webhosting UK\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/webhostingukcom\",\"https:\\\/\\\/x.com\\\/WebhostingUKcom\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/webhostinguk\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/webhosting-uk-com-ltd\\\/\",\"https:\\\/\\\/www.instagram.com\\\/webhosting_uk\\\/\",\"https:\\\/\\\/www.tiktok.com\\\/@webhostinguk\"],\"description\":\"Fast, reliable, and cost-effective website hosting services with Webhosting UK. Committed to providing you secure support around the clock.\",\"email\":\"sales@webhosting.uk.com\",\"telephone\":\"0800 862 0890\",\"legalName\":\"Webhosting UK\",\"foundingDate\":\"2001-02-07\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"51\",\"maxValue\":\"200\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/person\\\/ea067684eae84c2b8b49a81c69407297\",\"name\":\"Victor G\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"caption\":\"Victor G\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to find WordPress post IDs and page IDs - WHUK","description":"This article explains how to find WordPress post IDs and page IDs. Follow the simple steps mentioned in this article.","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.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/","og_locale":"en_GB","og_type":"article","og_title":"How to find WordPress post IDs and page IDs","og_description":"This article explains how to find WordPress post IDs and page IDs. Follow the simple steps mentioned in this article.","og_url":"https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/","og_site_name":"Webhosting UK Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/webhostingukcom","article_published_time":"2024-03-07T10:02:49+00:00","article_modified_time":"2026-03-03T11:32:58+00:00","og_image":[{"width":598,"height":360,"url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a420441.png","type":"image\/png"}],"author":"Victor G","twitter_card":"summary_large_image","twitter_creator":"@WebhostingUKcom","twitter_site":"@WebhostingUKcom","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/#article","isPartOf":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/"},"author":{"name":"Victor G","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/person\/ea067684eae84c2b8b49a81c69407297"},"headline":"How to find WordPress post IDs and page IDs","datePublished":"2024-03-07T10:02:49+00:00","dateModified":"2026-03-03T11:32:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/"},"wordCount":375,"publisher":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a420441.png","keywords":["WordPress Tips"],"articleSection":["WordPress"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/","url":"https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/","name":"How to find WordPress post IDs and page IDs - WHUK","isPartOf":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/#primaryimage"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a420441.png","datePublished":"2024-03-07T10:02:49+00:00","dateModified":"2026-03-03T11:32:58+00:00","description":"This article explains how to find WordPress post IDs and page IDs. Follow the simple steps mentioned in this article.","breadcrumb":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/#primaryimage","url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a420441.png","contentUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2024\/03\/Snag_a420441.png","width":598,"height":360},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-find-wordpress-post-ids-and-page-ids\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhosting.uk.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to find WordPress post IDs and page IDs"}]},{"@type":"WebSite","@id":"https:\/\/www.webhosting.uk.com\/kb\/#website","url":"https:\/\/www.webhosting.uk.com\/kb\/","name":"Webhosting UK Knowledge Base","description":"Expert Insights on Hosting, Development, Security, Marketing, and SEO","publisher":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization"},"alternateName":"WHUK","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhosting.uk.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization","name":"Webhosting UK","alternateName":"WHUK","url":"https:\/\/www.webhosting.uk.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","contentUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","width":1200,"height":628,"caption":"Webhosting UK"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhostingukcom","https:\/\/x.com\/WebhostingUKcom","https:\/\/www.youtube.com\/c\/webhostinguk","https:\/\/www.linkedin.com\/company\/webhosting-uk-com-ltd\/","https:\/\/www.instagram.com\/webhosting_uk\/","https:\/\/www.tiktok.com\/@webhostinguk"],"description":"Fast, reliable, and cost-effective website hosting services with Webhosting UK. Committed to providing you secure support around the clock.","email":"sales@webhosting.uk.com","telephone":"0800 862 0890","legalName":"Webhosting UK","foundingDate":"2001-02-07","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"51","maxValue":"200"}},{"@type":"Person","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/person\/ea067684eae84c2b8b49a81c69407297","name":"Victor G","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","caption":"Victor G"}}]}},"_links":{"self":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/17062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/comments?post=17062"}],"version-history":[{"count":7,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/17062\/revisions"}],"predecessor-version":[{"id":19123,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/17062\/revisions\/19123"}],"wp:attachment":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/media?parent=17062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/categories?post=17062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/tags?post=17062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}