wp_dropdown_categories ( $args = '' )

  • (array|string) $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.
  • (string) HTML dropdown list of categories.
Defined at:
Change Log:
  • 4: .
  • 4: .


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