Posted By

AlessandroCoscia on 12/22/09


Tagged

wordpress category name wp


Versions (?)

Wordpress - Get actual category name


 / Published in: PHP
 

How to get actual category name in wordpress if is_category() is true

  1. <?php
  2. if (is_category())
  3. echo single_cat_title();
  4. ?>

Report this snippet  

You need to login to post a comment.