WordPress.org

Ready to get started?Download WordPress

Forums

How to Format a Link to the Category? (5 posts)

  1. Andrew
    Member
    Posted 2 years ago #

    Hello.

    How can I format a link to the current post's category?

    I'm using the_category but it gives a validation error because of the rel="category_tag" that it uses.

    I want to make simple formatted category link like this:

    <a href="Category Link">Category Name</a>

    Please help,

    Andrew

  2. Hedley
    Member
    Posted 2 years ago #

    <a href="/archives/category/category_slug">Category Name</a>

  3. Andrew
    Member
    Posted 2 years ago #

    Category Name

    Okay, thank you.

    -Andrew

  4. Andrew
    Member
    Posted 2 years ago #

    Oh, by the way, I need to show the category of a post, not just post a link to a category.

    Please help.

    Thank you,

    Andrew

  5. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    Review category.php in the default theme.

Topic Closed

This topic has been closed to new replies.

About this Topic