wp_list_pages - set 'hierarchical' to 0 on 'include'
|Reported by:||Kafkaesqui||Owned by:||ryan|
|Severity:||normal||Keywords:||wp_list_pages include hierarchical child has-patch|
Using wp_list_pages() with the 'include' argument, the included Page(s) list will not appear if they have been assigned a parent.
I traced this down to the 'hierarchical'
parameter, which is set to 1 by default. It should added to the "ignore" list of variables in the if ( !empty($include) ) statement under the get_pages() function (wp-includes/post.php).
Change History (14)
- Resolution fixed deleted
- Status changed from closed to reopened
- Version changed from 2.3.1 to 2.3.2
- Owner changed from anonymous to ryan
- Status changed from reopened to new