Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_list_pages()

3 tags 1 category

wp_list_pages() — Retrieves or displays a list of pages (or hierarchical post type items) in list (li) format.

Inputs: $args (array|string): Optional. Array or string of arguments to generate a list of pages. See get_pages() for additional arguments. Field $child_of (int): Display only the sub-pages of a single page by ID. Default 0 (all pages). Field $authors (string): Comma-separated list of author IDs. Default empty (all authors). Field $date_format (string): PHP date format to use for the listed pages. Relies on the ‘show_date’ parameter. Default is the value of ‘date_format’ option. Field $depth (int): Number of levels in the hierarchy of pages to include in the generated list. Accepts -1 (any depth), 0 (all pages), 1 (top-level pages only), and n (pages to the given n depth). Default 0.

Returns string|void: HTML list of pages if ‘echo’ is false, nothing otherwise.

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…