-
have_posts() ) : while ( have_posts() ) : the_post();
the_content();
$attachment_args = array(
'post_type' => 'attachment',
'numberposts' => -1,
'post_status' => null,
'post_parent' => $post->ID,
'orderby' => 'menu_order ID'
);
$attachments = get_posts( $attachment_args );
if ( $attachments ) {
foreach ( $attachments as $gallery_image ) {
$attachment_img = wp_get_attachment_url( $gallery_image->ID );
$img_source = $attachment_img;
echo '
- ';
echo '
'; echo '
';
}
}
endwhile;
endif;
?>