Core Function
View Source on Trac ↗ wp_dropdown_categories()
wp_dropdown_categories( mixed $args = '' ) Displays or retrieves the HTML dropdown list of categories.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (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. Required |
Return Value
(string)
HTML dropdown list of categories.
Function Information
Since Version
2.1.0
Source File
wp-includes/category-template.php
Advertisement