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 ): null|false

This function has been deprecated. Use wp_list_categories() instead.

Lists categories.

Description

See also

Parameters

$optionallintoptional

Default:1

$allstringoptional

Default:'All'

$sort_columnstringoptional

Default:'ID'

$sort_orderstringoptional

Default:'asc'

$filestringoptional

Default:''

$listbooloptional

Default:true

$optiondatesintrequired
$optioncountintrequired
$hide_emptyintoptional

Default:1

$use_desc_for_titleintoptional

Default:1

$childrenbooloptional

Default:false

$child_ofintrequired
$categoriesintrequired
$recurseintrequired
$feedstringoptional

Default:''

$feed_imagestringoptional

Default:''

$excludestringoptional

Default:''

$hierarchicalbooloptional

Default:false

Return

null|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

VersionDescription
2.1.0Use wp_list_categories()
0.71Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.