WordPress.org

Ready to get started?Download WordPress

Forums

List of Categories that a post has (2 posts)

  1. anks329
    Member
    Posted 8 years ago #

    Is there any way to get only a list of categories that are assoicated with a post. the fuction the_category returns links... what is need is something that does the same thing, but gives me just the text, and not the links.

    Thanks

  2. whooami
    Member
    Posted 8 years ago #

    The following example displays the category name of each category assigned to the post (this is a like using the_category(), but without linking each category to the category view, and using spaces instead of commas):

    http://codex.wordpress.org/Template_Tags/get_the_category

Topic Closed

This topic has been closed to new replies.

About this Topic