What? Why would you have to find a WordPress category ID? Good question. Some themes or plugins ask you for this, and usually it is for things like excluding or including a category. You’d think that some of these themes and plugins have a drop down that will pull a list of your categories, but they don’t always do.
And frankly, some people aren’t actually using categories properly, so they might have a ton of categories to sort through, so the number method can sometimes be a nice fallback. Also, if you need to use the ID instead of the slug for the category when customizing a category template, you can use this method too.
How to Find WordPress Category ID
1. Go to Posts > Categories.
2. You will see a list of your categories. Hover over the category you want, and you can click on the link that says Edit.
3. In your browser’s address bar, you will see a long URL. I’ve given an example of my Blogging category’s URL, and have boxed the number to indicate where to find the category ID number.
Leave a Reply