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\nThe 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\nThe 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\nHere’s how to Find the WordPress Category ID<\/span><\/h2>\n\n\n\nLogin 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\nCreate the post category that you need to find the ID to if you have not done so already.<\/span><\/p>\n\n\n\nOn 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\nFrom 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 <\/figure>\n\n\n\nAlternate Copy Link Address Option<\/span><\/h2>\n\n\n\nThere 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\nYou 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":"\n
How to get the ID of a Post Category in WordPress<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n\t \n\t \n\t \n