[wp-trac] Re: [WordPress Trac] #10053: get_children() returns null
when no posts are found
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 6 20:07:44 GMT 2009
#10053: get_children() returns null when no posts are found
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: Query | Version: 2.8
Severity: minor | Keywords:
-------------------------------+--------------------------------------------
Comment(by Denis-de-Bernardy):
Found while doing the following query in the loop:
{{{
$images = get_children(array(
'post_parent' => $post->post_parent,
'post_type' => 'attachment',
'post_mime_type' => 'image',
'order_by' => 'menu_order ASC, ID ASC',
));
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10053#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list