WordPress.org

Ready to get started?Download WordPress

Forums

Displaying Catagory Names In The Title (6 posts)

  1. keenlearner
    Member
    Posted 9 years ago #

    Is there a way I can display catagory names in the title before the post title?

    I know <?php wp_title(); ?> is for the title of a post.

    Thanks

  2. moshu
    Member
    Posted 9 years ago #

    And here is the complete list of the template tags (including the_category)
    http://codex.wordpress.org/Template_Tags

  3. keenlearner
    Member
    Posted 9 years ago #

    Thanks moshu

  4. keenlearner
    Member
    Posted 9 years ago #

    I looked at the single_cat_title tag and this didn't work, any thoughts?

  5. ClimbingMonkey
    Member
    Posted 9 years ago #

    <?php wp_title(); ?> works with cats as well... at least is does on my site... :)

  6. keenlearner
    Member
    Posted 9 years ago #

    I have <?php wp_title();?> in my title tag and all it displays is the post title not the category...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags