get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image') ); foreach ( $attachments as $attachment_id => $attachment ) { echo ''; } ?>