How do I display the Category or Tag name on the Archives page?
-
This question relates to coding the archive.php file.
I want the name of the category parent, category child or tag to display on the page above the list of posts. Don’t know how to encode that.
On the single.php file, the post title is noted as <?php the_title(); ?>
I experimented with that for accessing the category or tag name, but no luck.
Here’s one of my archive pages. I want the Category name (in this case, ‘Quotes’) to appear under the olive green flourish.
https://albereo.com/melanie/category/quotes/
Thanks to anyone with a solution.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How do I display the Category or Tag name on the Archives page?’ is closed to new replies.