$size = array(566, 245);
$GaleryPageId = 16;
$Query = array(
'post_parent' => $GaleryPageId,
'post_type' => 'attachment',
'post_mime_type' => 'image',);
echo '
';
if ( $images = get_children($Query)) {
foreach( $images as $image ) {
$attachmenturl=wp_get_attachment_url($image->ID);
$attachmentimage=wp_get_attachment_image( $image->ID, $size );
echo '- '.$attachmentimage.'
' . "\n";
}
}
echo '
';