How do I display categories in post title (1 post)

  1. bmediaventures
    Posted 8 years ago #

    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> ?

Topic Closed

This topic has been closed to new replies.

About this Topic