'post_mime_type' => 'image',
'order' =>
$atts['order'
],
'orderby' =>
$atts['orderby'
],
) );
$attachments = array
();
foreach ( $_attachments as $key =>
$val ) { $attachments[ $val->ID
] =
$_attachments[ $key ];
} } elseif ( !
empty( $atts['exclude'
] ) ) { $attachments =
get_children( array
( 'post_parent' =>
$id,
'exclude' =>
$atts['exclude'
],
'post_status' => 'inherit',
'post_type' => 'attachment',
'post_mime_type' => 'image',
'order' =>
$atts['order'
],
'orderby' =>
$atts['orderby'
],
) );
} else {