Core Function
View Source on Trac ↗ wp_list_categories()
wp_list_categories( mixed $args = '' ) Displays or retrieves the HTML list of categories.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (array | string) $args { Array of optional arguments. See get_categories(), get_terms(), and WP_Term_Query::__construct() for information on additional accepted arguments. Required |
Return Value
((void)
(void | string | false) Void if 'echo' argument is true, HTML list of categories if 'echo' is false.
False if the taxonomy does not exist.
Function Information
Since Version
2.1.0
Source File
wp-includes/category-template.php
Advertisement