[wp-trac] Re: [WordPress Trac] #5742: add child_of to query_posts

WordPress Trac wp-trac at lists.automattic.com
Mon May 11 14:54:57 GMT 2009


#5742: add child_of to query_posts
-------------------------+--------------------------------------------------
 Reporter:  strider72    |        Owner:  anonymous
     Type:  enhancement  |       Status:  closed   
 Priority:  normal       |    Milestone:           
Component:  General      |      Version:           
 Severity:  normal       |   Resolution:  invalid  
 Keywords:  has-patch    |  
-------------------------+--------------------------------------------------
Changes (by filosofo):

  * status:  new => closed
  * resolution:  => invalid
  * milestone:  2.9 =>


Comment:

 Actually, "child_of" is the wrong name for this parameter, if we're going
 to be consistent with how it's used elsewhere in WP.

  * "child_of" - Selecting the "child_of" X should return all the
 ''descendants'' of X (children, grandchildren, great-grandchilren, etc.).
  * "parent" - Selecting the "parent" X should return just the ''immediate,
 first-generation children'' of X, not all descendants.

 Patch shows a query for "parent," which we can get already with the
 "post_parent" parameter.
 [[br]]

 I'm closing as invalid because we can already do what the patch does with
 "post_parent."

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


More information about the wp-trac mailing list