[wp-trac] [WordPress Trac] #16850: post_parent should accept an array of IDs

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 14 00:56:56 UTC 2011


#16850: post_parent should accept an array of IDs
-------------------------+----------------------------
 Reporter:  scribu       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Future Release
Component:  Query        |    Version:
 Severity:  normal       |   Keywords:
-------------------------+----------------------------
 Currently, it's not possible to get a list of posts that have one of
 several parents, since the 'post_parent' query var only accepts an
 integer.

 And, since a post can only have a single parent, there's only one possible
 interpretation for this:

 {{{get_posts( array( 'post_parent' => array( 1, 2, 3 ) ) );}}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16850>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list