[wp-trac] Re: [WordPress Trac] #8603: post_parent default in get_children

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 14 10:17:15 GMT 2008


#8603: post_parent default in get_children
---------------------+------------------------------------------------------
 Reporter:  jdub     |        Owner:  anonymous
     Type:  defect   |       Status:  new      
 Priority:  normal   |    Milestone:  2.7.1    
Component:  General  |      Version:  2.7      
 Severity:  normal   |   Resolution:           
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by filosofo):

 Replying to [comment:2 Viper007Bond]:
 > I use it to get all attachments. Is there a better method?

 What about

 {{{get_posts(array('post_type' => 'attachment', 'showposts' => -1))}}}

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


More information about the wp-trac mailing list