'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID ); echo "
";
$attachments = get_posts( $args );
if ( $attachments ) {
foreach ( $attachments as $attachment ) {
$imgsrc = wp_get_attachment_image_src( $attachment->ID, 'full');
echo "". wp_get_attachment_image( $attachment->ID, 'thumbnail',1,array('class'=>'') )."";
}
}
echo "
";
?>