list_cats()
list_cats( int $optionall = 1, string $all = ‘All’, string $sort_column = ‘ID’, string $sort_order = ‘asc’, string $file = ”, bool $list = true, int $optiondates, int $optioncount, int $hide_empty = 1, int $use_desc_for_title = 1, bool $children = false, int $child_of, int $categories, int $recurse, string $feed = ”, string $feed_image = ”, string $exclude = ”, bool $hierarchical = false )
列出类别。
Lists categories.
说明(Description)
另见函数 wp_list_categories()
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$optionall | (int) | 可选 | |
$all | (string) | 可选 | |
$sort_column | (string) | 可选 | |
$sort_order | (string) | 可选 | |
$file | (string) | 可选 | |
$list | (bool) | 可选 | |
$optiondates | (int) | 必需 | |
$optioncount | (int) | 必需 | |
$hide_empty | (int) | 可选 | |
$use_desc_for_title | (int) | 可选 | |
$children | (bool) | 可选 | |
$child_of | (int) | 必需 | |
$categories | (int) | 必需 | |
$recurse | (int) | 必需 | |
$feed | (string) | 可选 | |
$feed_image | (string) | 可选 | |
$exclude | (string) | 可选 | |
$hierarchical | (bool) | 可选 |
返回(Return)
(null|false)
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.1.0 | wp-includes/deprecated.php:615 | 0 | 2 |
list_cats() 为WP2原创文章,链接:https://www.wp2.cn/functions/list_cats/