wp_dropdown_categories


wp_dropdown_categories ( $args = '' )

Parameters:
  • (string|array) $args { Optional. Array or string of arguments to generate a categories drop-down element. See WP_Term_Query::__construct() for information on additional accepted arguments.
Returns:
  • (string) HTML content only if 'echo' argument is 0.
Defined at:
Change Log:
  • 4: .
  • 4: .

Description

Display or retrieve the HTML dropdown list of categories.

The 'hierarchical' argument, which is disabled by default, will override the depth argument, unless it is true. When the argument is false, it will display all of the categories. When it is enabled it will use the value in the 'depth' argument.

Related Functions

dropdown_categories, wp_dropdown_cats, dropdown_link_categories, wp_dropdown_pages, wp_dropdown_roles

Top Google Results

User discussions

wpseek mobile