Sound like you want to use the_category()
Displays a link to the category or categories a post belongs to. This tag must be used within The Loop.
Sound like you want to use the_category()
Displays a link to the category or categories a post belongs to. This tag must be used within The Loop.