'ASC', 'orderby' => 'menu_order', 'post_type' => 'attachment', 'post_parent' => $post->ID, 'post_mime_type' => 'image', 'post_status' => null, 'numberposts' => -1 ); $attachments = get_posts($args); $i = 0; if (count($attachments) > 0) { ?>