Viewing 1 reply thread
You must be logged in to reply to this topic.
How can i add a title of the current category on the category page?
Hello,
You have to replace the file archive.php with the file above:
Practicatically I have added this line of code inside of container div:
<?php $category = get_the_category();
if(is_category()): ?>
<h2><?php echo $category[0]->cat_name; ?></h2>
<?php endif; ?>
Regards!
You must be logged in to reply to this topic.