=== List Pages Shortcode === Contributors: husobj, aaron_guitar Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=aaron%40freshwebs%2enet&item_name=Fotobook%20Donation&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8 Tags: shortcodes, pages, list pages, sibling pages, child pages, subpages Requires at least: 3.5 Tested up to: 4.4.2 Stable tag: 1.7.4 License: GPLv2 or later Introduces the [list-pages], [sibling-pages] and [child-pages] shortcodes for easily displaying a list of pages within a post or page. == Description == Introduces the [list-pages], [sibling-pages] and [child-pages] [shortcodes](http://codex.wordpress.org/Shortcode_API) for easily displaying a list of pages within a post or page. Both shortcodes accept all parameters that you can pass to the [`wp_list_pages()`](http://codex.wordpress.org/Template_Tags/wp_list_pages) function with the addition of a class parameter. = Example Usage = *List pages sorted by title* `[list-pages sort_column="post_title"]` *List pages but exclude certain IDs and set the class of the list to "my-page-list"* `[list-pages exclude="17,38" class="my-page-list"]` *Show excerpt (for pages excerpt support will need adding manually or via the [Page Excerpt](https://wordpress.org/plugins/page-excerpt/) plugin)* `[list-pages excerpt="1"]` *List the current page's children, but only show the top level* `[child-pages depth="1"]` *List the current page's siblings and their subpages* `[sibling-pages depth="2"]` = Default Arguments = The default values are the same as for the [wp_list_pages()](http://codex.wordpress.org/Template_Tags/wp_list_pages) function except for title_li which defaults to nothing. If a class is not specified, a default class of either "list-pages", "sibling-pages" or "child-pages" is given to the UL tag. In addition, the echo parameter has no effect. In addition to the [wp_list_pages()](http://codex.wordpress.org/Template_Tags/wp_list_pages) arguments, you can also specify: * **list_type** *(string)* List tag. Defaults to `