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

wp_list_cats( string|array $args = '' )

Lists categories.


Description Description

See also See also


Top ↑

Parameters Parameters

$args

(string|array) (Optional)

Default value: ''


Top ↑

Return Return

(false|null|string)


Top ↑

Source Source

File: wp-includes/deprecated.php

function wp_list_cats($args = '') {
	_deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_categories()' );

	$r = wp_parse_args( $args );

	// Map to new names.
	if ( isset($r['optionall']) && isset($r['all']))
		$r['show_option_all'] = $r['all'];
	if ( isset($r['sort_column']) )
		$r['orderby'] = $r['sort_column'];
	if ( isset($r['sort_order']) )
		$r['order'] = $r['sort_order'];
	if ( isset($r['optiondates']) )
		$r['show_last_update'] = $r['optiondates'];
	if ( isset($r['optioncount']) )
		$r['show_count'] = $r['optioncount'];
	if ( isset($r['list']) )
		$r['style'] = $r['list'] ? 'list' : 'break';
	$r['title_li'] = '';

	return wp_list_categories($r);
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Use wp_list_categories()
1.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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