child-pages
[child-pages]
Lists children of the current page in a hierarchical bulleted list.
Aliases
[list-pages]
Parameters
- ‘child_of’ (int) Display only the sub-pages of a single page by ID. Default 0 (all pages).
- ‘show_parent’ (int) if 1 (true), show the parent page with the children nested beneath. Default 0.
- ‘depth’ (int) Number of levels in the hierarchy of pages to include in the generated list. Default 0.
- ‘location’ (string) can be left, inline, or right (default) – puts into a left or right floating div, as needed, or leaves it inline.
- ‘title’ (string) set an alternative title - the default is "Subpages:". use title="" for no title.
- ‘blend’ (boolean) Blend to look like a normal list of links (no border, shading, or list bullets). Useful for adding subpage lists into pages of lists (e.g spell lists, equipment lists)
Note that the following options are currently disabled
- ‘sort_column’ (string) Comma-separated list of column names to sort the pages by. Accepts ‘post_author’, ‘post_date’, ‘post_title’, ‘post_name’, ‘post_modified’, ‘post_modified_gmt’, ‘menu_order’, ‘post_parent’, ‘ID’, ‘rand’, or ‘comment_count’. Default ‘post_title’.
- ‘authors’ (string) Comma-separated list of author IDs. Default empty (all authors).
- ‘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.
- 'exclude_current_page' (int) Exclude the current page. Defaults to 0.
- ‘exclude’ (string) Comma-separated list of page IDs to exclude.
- ‘include’ (array) Comma-separated list of page IDs to include.
- ‘post_type’ (string) Post type to query for. Default ‘page’.
- ‘post_status’ (string) Comma-separated list of post statuses to include. Default ‘publish’.
- ‘show_date’ (string) Whether to display the page publish or modified date for each page. Accepts ‘modified’ or any other value. An empty value hides the date.