Category Name Plugin for Expression Engine
January 02, 2009
Just wanted to share a little plugin for Expression Engine that I wrote to help with help finding just the sub-category name of an entry. The default categories tag will give you the full name of parents and siblings. So this little plugin just gives you the sub-category name.
You must know the category_id to get the name though. It works well in conjuction with the category_id plugin available elsewhere.
Update...
You no longer need this plugin. Just use the following:
{ exp:query sql="SELECT cat_name FROM exp_categories WHERE cat_id = '{category_id}'"}{cat_name}{/exp:query}









