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. Accepts 'multiple', 'single', or empty. Default empty string.
- (int) post_id Optional. ID of the post to retrieve categories for. Defaults to the current post.
Defined at: - Introduced in WordPress: 0.71
- Deprecated in WordPress: —
Description
Displays category list for a post in either HTML list or custom format.