Get Category Name By ID (WordPress)

I have been working on a new WordPress theme (to be released this week) and in one of the admin screens – I needed to get the category name by using the category ID. To do this (in or outside of the loop):

<?php get_cat_name( $cat_id ) ?>

Super simple – super helpful.

Reference: http://codex.wordpress.org/Function_Reference/get_cat_name

About the Author...

Jennifer Zelazny

I am a Penn State alumni, avid golfer, kick boxer, volunteer, and Chicagoland WordPress developer who always enjoys a refreshing Coca-Cola.