Lists categories.
Description
See also
Parameters
$optionall
intoptionalDefault:
1
$all
stringoptionalDefault:
'All'
$sort_column
stringoptionalDefault:
'ID'
$sort_order
stringoptionalDefault:
'asc'
$file
stringoptionalDefault:
''
$list
booloptionalDefault:
true
$optiondates
intrequired$optioncount
intrequired$hide_empty
intoptionalDefault:
1
$use_desc_for_title
intoptionalDefault:
1
$children
booloptionalDefault:
false
$child_of
intrequired$categories
intrequired$recurse
intrequired$feed
stringoptionalDefault:
''
$feed_image
stringoptionalDefault:
''
$exclude
stringoptionalDefault:
''
$hierarchical
booloptionalDefault:
false
Source
function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0,
$optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0,
$recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) {
_deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_categories()' );
$query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children',
'child_of', 'categories', 'recurse', 'feed', 'feed_image', 'exclude', 'hierarchical');
return wp_list_cats($query);
}
Changelog
Version | Description |
---|---|
2.1.0 | Use wp_list_categories() |
0.71 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.