[wp-trac] [WordPress Trac] #9470: Allow get_pages to get child pages of multiple pages
WordPress Trac
noreply at wordpress.org
Wed Aug 7 23:53:28 UTC 2013
#9470: Allow get_pages to get child pages of multiple pages
-------------------------+------------------------
Reporter: joostdevalk | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 3.7
Component: Query | Version: 2.8
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------
Changes (by wonderboymusic):
* keywords: needs-patch => has-patch
* milestone: Future Release => 3.7
Comment:
[attachment:9470.diff 9470.diff] Allows `parent` to accept an array:
{{{
$p = get_pages();
$p = get_pages( array( 'parent' => 0 ) );
$p = get_pages( array( 'parent' => 7 ) );
$p = get_pages( array( 'parent' => array( 3, 5, 7, 9 ) ) );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9470#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list