wpseek.com
A WordPress-centric search engine for devs and theme authors



list_cats › WordPress Function

Since0.71
Deprecated2.1.0
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 )
Parameters: (18)
  • (int) $optionall
    Required: No
    Default: 1
  • (string) $all
    Required: No
    Default: 'All'
  • (string) $sort_column
    Required: No
    Default: 'ID'
  • (string) $sort_order
    Required: No
    Default: 'asc'
  • (string) $file
    Required: No
    Default: (empty)
  • (bool) $list
    Required: No
    Default: true
  • (int) $optiondates
    Required: No
    Default:
  • (int) $optioncount
    Required: No
    Default:
  • (int) $hide_empty
    Required: No
    Default: 1
  • (int) $use_desc_for_title
    Required: No
    Default: 1
  • (bool) $children
    Required: No
    Default: false
  • (int) $child_of
    Required: No
    Default:
  • (int) $categories
    Required: No
    Default:
  • (int) $recurse
    Required: No
    Default:
  • (string) $feed
    Required: No
    Default: (empty)
  • (string) $feed_image
    Required: No
    Default: (empty)
  • (string) $exclude
    Required: No
    Default: (empty)
  • (bool) $hierarchical
    Required: No
    Default: false
See:
Returns:
  • (null|false)
Defined at:
Codex:

Lists categories.



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);
}