the_category

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

Display the category list for the post.

Parameters

  • 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 );

}

2985

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:

WordPress.com Logo

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

Facebook photo

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

Connecting to %s

%d bloggers like this: