Changeset 28357
- Timestamp:
- 05/10/2014 08:01:13 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r28331 r28357 967 967 * @since 1.5.0 968 968 * 969 * @param array|string $args Optional. Override default arguments. 970 * @return string HTML content, if not displaying. 971 */ 972 function wp_list_pages($args = '') { 969 * @see get_pages() 970 * 971 * @param array|string $args { 972 * Array or string of arguments. Optional. 973 * 974 * @type int $child_of Display only the sub-pages of a single page by ID. Default 0 (all pages). 975 * @type string $authors Comma-separated list of author IDs. Default empty (all authors). 976 * @type string $date_format PHP date format to use for the listed pages. Relies on the 'show_date' parameter. 977 * Default is the value of 'date_format' option. 978 * @type int $depth Number of levels in the hierarchy of pages to include in the generated list. 979 * Accepts -1 (any depth), 0 (all pages), 1 (top-level pages only), and n (pages to 980 * the given n depth). Default 0. 981 * @type bool $echo Whether or not to echo the list of pages. Default true. 982 * @type string $exclude Comma-separated list of page IDs to exclude. Default empty. 983 * @type array $include Comma-separated list of page IDs to include. Default empty. 984 * @type string $link_after Text or HTML to follow the page link label. Default null. 985 * @type string $link_before Text or HTML to precede the page link label. Default null. 986 * @type string $post_type Post type to query for. Default 'page'. 987 * @type string $post_status Comma-separated list of post statuses to include. Default 'publish'. 988 * @type string $show_date Whether to display the page publish or modified date for each page. Accepts 989 * 'modified' or any other value. An empty value hides the date. Default empty. 990 * @type string $sort_column Comma-separated list of column names to sort the pages by. Accepts 'post_author', 991 * 'post_date', 'post_title', 'post_name', 'post_modified', 'post_modified_gmt', 992 * 'menu_order', 'post_parent', 'ID', 'rand', or 'comment_count'. Default 'post_title'. 993 * @type string $title_li List heading. Passing a null or empty value will result in no heading, and the list 994 * will not be wrapped with unordered list `<ul>` tags. Default 'Pages'. 995 * @type Walker $walker Walker instance to use for listing pages. Default empty (Walker_Page). 996 * } 997 * @return string HTML list of pages. 998 */ 999 function wp_list_pages( $args = '' ) { 973 1000 $defaults = array( 974 1001 'depth' => 0, 'show_date' => '',
Note: See TracChangeset
for help on using the changeset viewer.