WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Remove category link from the_category (3 posts)

  1. ghaib
    Member
    Posted 3 years ago #

    I need to get the text value of a category, but when I use the standard <?php the_category(''); ?> it returns categories as links, wrapped in <li>

    Is there any way of just returning the text value of a category, without linking to it or wrapping it in a list?

    Thanks!

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

  3. ghaib
    Member
    Posted 3 years ago #

    Thanks, it worked!

Topic Closed

This topic has been closed to new replies.

About this Topic