Core Function
View Source on Trac ↗ wp_list_pages()
wp_list_pages( mixed $args = '' ) Retrieves or displays a list of pages (or hierarchical post type items) in list (li) format.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (array | string) $args { Optional. Array or string of arguments to generate a list of pages. See get_pages() for additional arguments. Required |
Return Value
((void)
| string) Void if 'echo' argument is true, HTML list of pages if 'echo' is false.
Function Information
Since Version
1.5.0
Source File
wp-includes/post-template.php
Advertisement