Languages: English • Русский • 日本語 (Add your language)
Displays a link to the category or categories a post belongs to. This tag must be used within The Loop.
<?php the_category( $separator, $parents, $post_id ); ?>
false
results in the category list of the current post.
List categories with a space as the separator.
<?php the_category( ' ' ); ?>
Displays links to categories, each category separated by a comma (if more than one).
<?php the_category( ', ' ); ?>
Displays links to categories with an arrow (>) separating the categories.
Note: Take care when using this, since some viewers may interpret a category following a > as a subcategory of the one preceding it.
<?php the_category( '> ' ); ?>
Displays links to categories with a bullet (•) separating the categories.
<?php the_category( '•' ); ?>
wp-includes/category-template.php