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
Thanks!
Needed this!
Thanks, simple and really really useful in daily use.
Thanks!
Really very helpful!!
Wowh.. that so simple but so usefull….
Very2 I need!
thanks ^^
Thanx a lot
Totally awesome. i Goggled the simplest way to do this and i landed on correct page.
Thanks Mate.
Nice post it helped me a lot. Thanks…
Always better explained on blogs than in WP codex… thanks it is useful!
Thanks. As simple as saying it… But yet useful to see it.
note to “id meneo”, I think that the codex it pretty good. Not always “really obviously” clear, but pretty good.
Thanks, this is what I was looking for. It’s true, sometimes the codex is a bit complicated to understand and if stuff is explained like this it’s easier to get it.
Thanks..
Very nice, simple and come to the point post.
Keep posting..
Thank you, I’ve recently been searching for information approximately this subject for ages and yours is the greatest I’ve found out so far. However, what about the bottom line? Are you positive in regards to the supply?|What i do not understood is if truth be told how you’re now not really a lot more neatly-appreciated than you may be now. You are very intelligent.
Thanks !
Thanks, this post just helped me out 🙂
This post > helping people like me since 2009
That was exactly the info , i was looking for
Ohh Boy..you forgot to write the echo above…but after all i got success..