Glossary Term
wp_dropdown_pages()
wp_dropdown_pages() — Retrieves or displays a list of pages as a dropdown (select list).
Inputs: $args (array|string): Optional. Array or string of arguments to generate a page dropdown. See get_pages() for additional arguments. Field $depth (int): Maximum depth. Default 0. Field $child_of (int): Page ID to retrieve child pages of. Default 0. Field $selected (int|string): Value of the option that should be selected. Default 0. Field $echo (bool|int): Whether to echo or return the generated markup. Accepts 0, 1, or their bool equivalents. Default 1. Field $name (string): Value for the ‘name’ attribute of the select element. Default ‘page_id’. Field $id (string): Value for the ‘id’ attribute of the select element. Field $class (string): Value for the ‘class’ attribute of the select element. Default: none.
Returns string: HTML dropdown list of pages.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
