WordPress Category ID: How To Easily Retrieve It
While tweaking your WordPress theme, you may need to retrieve certain category IDs. (For example, to display posts differently if they are in a given category.)
It may take you only a couple seconds to find a category ID if you are an experienced WordPress user. However, I also have to think about all the people who are just starting using WordPress.
- In order to find the category ID of a given category, you must first log into WordPress admin area.
- Once logged in, you should navigate to
Posts, then in
- The last step is to just put your mouse pointer on the
Editlink related to the category of which you want to know the category ID, and take a look at your browser status bar (at the bottom of your screen). You will see a link such as: http://dukeo.com/wp-admin/categories.php?action=edit&cat_ID=1
There you go! Now you have your WordPress category ID.