Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



list_cats ›

Seit0.71
Veraltet2.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 )
Parameter: (18)
  • (int) $optionall
    Erforderlich: Nein
    Standard: 1
  • (string) $all
    Erforderlich: Nein
    Standard: 'All'
  • (string) $sort_column
    Erforderlich: Nein
    Standard: 'ID'
  • (string) $sort_order
    Erforderlich: Nein
    Standard: 'asc'
  • (string) $file
    Erforderlich: Nein
    Standard: (leer)
  • (bool) $list
    Erforderlich: Nein
    Standard: true
  • (int) $optiondates
    Erforderlich: Nein
    Standard:
  • (int) $optioncount
    Erforderlich: Nein
    Standard:
  • (int) $hide_empty
    Erforderlich: Nein
    Standard: 1
  • (int) $use_desc_for_title
    Erforderlich: Nein
    Standard: 1
  • (bool) $children
    Erforderlich: Nein
    Standard: false
  • (int) $child_of
    Erforderlich: Nein
    Standard:
  • (int) $categories
    Erforderlich: Nein
    Standard:
  • (int) $recurse
    Erforderlich: Nein
    Standard:
  • (string) $feed
    Erforderlich: Nein
    Standard: (leer)
  • (string) $feed_image
    Erforderlich: Nein
    Standard: (leer)
  • (string) $exclude
    Erforderlich: Nein
    Standard: (leer)
  • (bool) $hierarchical
    Erforderlich: Nein
    Standard: false
Siehe:
Gibt zurück:
  • (false|null)
Definiert in:
Codex:

Lists categories.



Quellcode

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