we have <?php the_title(); ?>
we need <?php the_cat_title(); ?>
we have <?php the_title(); ?>
we need <?php the_cat_title(); ?>
single_cat_title();
Can be used only outside The Loop.
Using it inside the Loop is not all that difficult:
<?php
$cat_title = single_cat_title('display'=>false);
// THE LOOP ...
echo $cat_title;
// END LOOP
?>This topic has been closed to new replies.