How do I display categories in post title
I want to display the post category in the <title> of the post
I tried inserting this code into the post template
<?php the_category(‘, ‘) ?>
But it displayed HTML code and links to the categories in the post title.
Is there a way to just display the names of the categories in the <title> ?
- The topic ‘How do I display categories in post title’ is closed to new replies.