the_category


the_category ( $separator = '', $parents = '', $post_id = false )

Parameters:
  • (string) $separator Optional. Separator between the categories. By default, the links are placed in an unordered list. An empty string will result in the default behavior.
  • (string) $parents Optional. How to display the parents.
  • (int) $post_id Optional. Post ID to retrieve categories.
Defined at:

Description

Display category list for a post in either HTML list or custom format.

Related Functions

the_category_id, the_category_rss, get_the_category, has_category, the_category_head

Top Google Results

User discussions

wpseek mobile