post_parent > 0 ) {
$args = array(
'numberposts' => apply_filters( 'rtp_image_sibling_count', 10 ),
'order' => 'ASC',
'post_mime_type'=> 'image',
'post_parent' => $post->post_parent,
'post_status' => 'inherit',
'post_type' => 'attachment'
);
$attachments = get_children( $args );
if ( $attachments ) { ?>