Summery Summery
Display category list for a post in either HTML list or custom format.
Syntax Syntax
Parameters Parameters
- $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.
Default value: ''
- $parents
-
(Optional) How to display the parents.
Default value: ''
- $post_id
-
(Optional) Post ID to retrieve categories.
Default value: false
Source Source
File: wp-includes/category-template.php
/** * Displays category list for a post in either HTML list or custom format. *
Advertisement
Changelog Changelog
Version | Description |
---|---|
0.71 | Introduced. |