Posted By

jakepaint on 11/16/07


Tagged

php wordpress category categories


Versions (?)

Grab category name


 / Published in: PHP
 

URL: http://codex.wordpress.org/Template_Tags/get_the_category

This will echo back the name of the current category. Didn't write, just keeping...

  1. <? $cat = get_the_category(); $cat = $cat[0]; echo $cat->cat_name;?>

Report this snippet  

You need to login to post a comment.