[wp-trac] [WordPress Trac] #11056: More Flexibility in args['post_parent']

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 12 06:07:08 UTC 2012


#11056: More Flexibility in args['post_parent']
-------------------------+-------------------
 Reporter:  miqrogroove  |       Owner:  ryan
     Type:  enhancement  |      Status:  new
 Priority:  high         |   Milestone:  3.5
Component:  Query        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-------------------
Changes (by wonderboymusic):

 * keywords:   => has-patch
 * milestone:  Future Release => 3.5


Comment:

 Introduce {{{post_parent__in}}}, {{{post_parent__not_in}}} - patch
 attached.

 Example usage:

 {{{
 php -r "require 'wp-load.php'; \
 print_r( get_posts( array( 'post_parent__in' => array( 47 ), 'post_type'
 => 'page', 'orderby' => 'post_parent__in' ) ) );"
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11056#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list