function the_category( $separator = '', $parents='', $post_id = false ) {}

Display the category list for the post.


  • string $separator: Optional, default is empty string. Separator for between the categories.
  • string $parents: Optional. How to display the parents.
  • int $post_id: Optional. Post ID to retrieve categories.

Source code

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

	echo get_the_category_list( $separator, $parents, $post_id );



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: