{"id":8089,"date":"2019-10-28T04:52:29","date_gmt":"2019-10-28T08:52:29","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=8089"},"modified":"2021-12-08T10:55:59","modified_gmt":"2021-12-08T15:55:59","slug":"how-to-get-the-wordpress-category-id","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/","title":{"rendered":"How to Get the WordPress Category ID"},"content":{"rendered":"\n

As a beginner to WordPress<\/a> Themes and the platform in its entirety, You might need to work with the WordPress Category ID directly. This is an ID that uniquely identifies a particular category when it is created. <\/span><\/p>\n\n\n\n

The ID remains the constant identifier seeing the category name can be changed any time as well as the slug even though it is not advisable to change the slug for SEO purposes. <\/span><\/p>\n\n\n\n

The WordPress API has functions that allow you to retrieve that ID dynamically but that is not so easy when you just need a visual of the same. Do not despair as there is a simple and quick way to get your browser to reveal this ID.<\/span><\/p>\n\n\n\n

Here’s how to Find the WordPress Category ID<\/span><\/h2>\n\n\n\n

Login to your WordPress dashboard if you already haven’t done so. Next, navigate to the Posts > Categories node from the dashboard menu.<\/span><\/p>\n\n\n\n

Create the post category that you need to find the ID to if you have not done so already.<\/span><\/p>\n\n\n\n

On the list of categories, move your mouse onto the category name without clicking it. At this point, the status of the underlying URL will be highlighted at the bottom of your web browser. <\/span><\/p>\n\n\n\n

From the highlighted URL at the bottom of the web browser, visuall scan it and find a section that looks something like <\/span>tag_ID=X <\/span><\/em><\/strong>where <\/span>X<\/span><\/strong> is the ID of the category. <\/span><\/p>\n\n\n\n

\"WordPress<\/figure>\n\n\n\n

Alternate Copy Link Address Option<\/span><\/h2>\n\n\n\n

There are cases where the browser may not play nice and you may not see the URL highlighted at the bottom of your web browser windows. In this case, you can right-click “Copy Link Address” or “Copy Link Location” depending on your browser. <\/span><\/p>\n\n\n\n

You can then paste the URL into your favorite text editor and retrieve the WordPress Category ID from the <\/span>tag_ID<\/span><\/em><\/strong> value.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

As a beginner to WordPress Themes and the platform in its entirety, You might need to work with the WordPress Category ID directly. This is an ID that uniquely identifies…<\/p>\n","protected":false},"author":1,"featured_media":8090,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,23,16,17],"tags":[136,424,543,581,635,651],"yoast_head":"\nHow to get the ID of a Post Category in WordPress<\/title>\n<meta name=\"description\" content=\"These are the simple steps on how to easily find the WordPress category ID from the admin dashboard to use in your custom themes\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to get the ID of a Post Category in WordPress\" \/>\n<meta property=\"og:description\" content=\"These are the simple steps on how to easily find the WordPress category ID from the admin dashboard to use in your custom themes\" \/>\n<meta property=\"og:url\" content=\"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/\" \/>\n<meta property=\"og:site_name\" content=\"Brightwhiz.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/brightwhiz\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-28T08:52:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-08T15:55:59+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2019\/10\/wordpress-category-id.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Bright\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:site\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Bright\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/\"},\"author\":{\"name\":\"Michael Bright\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\"},\"headline\":\"How to Get the WordPress Category ID\",\"datePublished\":\"2019-10-28T08:52:29+00:00\",\"dateModified\":\"2021-12-08T15:55:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/\"},\"wordCount\":324,\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2019\/10\/wordpress-category-id.jpg\",\"keywords\":[\"CMS\",\"Open Source\",\"Software Design\",\"Themes\",\"Web\",\"WordPress\"],\"articleSection\":[\"Articles\",\"Guides\",\"Technology\",\"Tips\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/\",\"url\":\"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/\",\"name\":\"How to get the ID of a Post Category in WordPress\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2019\/10\/wordpress-category-id.jpg\",\"datePublished\":\"2019-10-28T08:52:29+00:00\",\"dateModified\":\"2021-12-08T15:55:59+00:00\",\"description\":\"These are the simple steps on how to easily find the WordPress category ID from the admin dashboard to use in your custom themes\",\"breadcrumb\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/#primaryimage\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2019\/10\/wordpress-category-id.jpg\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2019\/10\/wordpress-category-id.jpg\",\"width\":1200,\"height\":630,\"caption\":\"WordPress Category ID\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/local.brightwhiz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Get the WordPress Category ID\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/local.brightwhiz\/#website\",\"url\":\"http:\/\/local.brightwhiz\/\",\"name\":\"Brightwhiz.com\",\"description\":\"Best Tech guides, Tutorials, and News\",\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/local.brightwhiz\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/local.brightwhiz\/#organization\",\"name\":\"Brightwhiz\",\"url\":\"http:\/\/local.brightwhiz\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"width\":706,\"height\":135,\"caption\":\"Brightwhiz\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/brightwhiz\/\",\"https:\/\/twitter.com\/brightwhizmag\",\"https:\/\/instagram.com\/bright_whiz\/\",\"https:\/\/www.pinterest.com\/sobbayi\/\",\"https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\",\"name\":\"Michael Bright\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"caption\":\"Michael Bright\"},\"sameAs\":[\"https:\/\/sobbayi.com\"],\"url\":\"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to get the ID of a Post Category in WordPress","description":"These are the simple steps on how to easily find the WordPress category ID from the admin dashboard to use in your custom themes","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":"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/","og_locale":"en_US","og_type":"article","og_title":"How to get the ID of a Post Category in WordPress","og_description":"These are the simple steps on how to easily find the WordPress category ID from the admin dashboard to use in your custom themes","og_url":"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/","og_site_name":"Brightwhiz.com","article_publisher":"https:\/\/www.facebook.com\/brightwhiz\/","article_published_time":"2019-10-28T08:52:29+00:00","article_modified_time":"2021-12-08T15:55:59+00:00","og_image":[{"width":1200,"height":630,"url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2019\/10\/wordpress-category-id.jpg","type":"image\/jpeg"}],"author":"Michael Bright","twitter_card":"summary_large_image","twitter_creator":"@brightwhizmag","twitter_site":"@brightwhizmag","twitter_misc":{"Written by":"Michael Bright","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/#article","isPartOf":{"@id":"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/"},"author":{"name":"Michael Bright","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32"},"headline":"How to Get the WordPress Category ID","datePublished":"2019-10-28T08:52:29+00:00","dateModified":"2021-12-08T15:55:59+00:00","mainEntityOfPage":{"@id":"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/"},"wordCount":324,"publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"image":{"@id":"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2019\/10\/wordpress-category-id.jpg","keywords":["CMS","Open Source","Software Design","Themes","Web","WordPress"],"articleSection":["Articles","Guides","Technology","Tips"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/","url":"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/","name":"How to get the ID of a Post Category in WordPress","isPartOf":{"@id":"http:\/\/local.brightwhiz\/#website"},"primaryImageOfPage":{"@id":"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/#primaryimage"},"image":{"@id":"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2019\/10\/wordpress-category-id.jpg","datePublished":"2019-10-28T08:52:29+00:00","dateModified":"2021-12-08T15:55:59+00:00","description":"These are the simple steps on how to easily find the WordPress category ID from the admin dashboard to use in your custom themes","breadcrumb":{"@id":"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/#primaryimage","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2019\/10\/wordpress-category-id.jpg","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2019\/10\/wordpress-category-id.jpg","width":1200,"height":630,"caption":"WordPress Category ID"},{"@type":"BreadcrumbList","@id":"http:\/\/local.brightwhiz\/how-to-get-the-wordpress-category-id\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/local.brightwhiz\/"},{"@type":"ListItem","position":2,"name":"How to Get the WordPress Category ID"}]},{"@type":"WebSite","@id":"http:\/\/local.brightwhiz\/#website","url":"http:\/\/local.brightwhiz\/","name":"Brightwhiz.com","description":"Best Tech guides, Tutorials, and News","publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/local.brightwhiz\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/local.brightwhiz\/#organization","name":"Brightwhiz","url":"http:\/\/local.brightwhiz\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","width":706,"height":135,"caption":"Brightwhiz"},"image":{"@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/brightwhiz\/","https:\/\/twitter.com\/brightwhizmag","https:\/\/instagram.com\/bright_whiz\/","https:\/\/www.pinterest.com\/sobbayi\/","https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ"]},{"@type":"Person","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32","name":"Michael Bright","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","caption":"Michael Bright"},"sameAs":["https:\/\/sobbayi.com"],"url":"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/"}]}},"_links":{"self":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/8089"}],"collection":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/comments?post=8089"}],"version-history":[{"count":0,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/8089\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media\/8090"}],"wp:attachment":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media?parent=8089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/categories?post=8089"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/tags?post=8089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}