get_the_category_list


get_the_category_list ( $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.
See:
Returns:
  • (string) Category list for a post.
Defined at:

Description

Retrieves category list for a post in either HTML list or custom format.Generally used for quick, delimited (e.g. comma-separated) lists of categories, as part of a post entry meta. For a more powerful, list-based function, see wp_list_categories().

Related Functions

get_the_category_rss, get_the_category, get_the_term_list, get_the_category_by_id, get_the_tag_list

Top Google Results

User discussions

wpseek mobile