Simple question. I’m creating a wordpress theme and I want to display the post category name inside a <h1> tag.
If I used the_category(“”); wordpress outputs a linkable category name.
Since I’m already on that categories page, I don’t want the category name to be linkable, instead, I only want it displayed as plain text.
Any help would be appreciated
use
<?php single_cat_title( ); ?>you can see doc here http://codex.wordpress.org/Function_Reference/single_cat_title