PHOTO

PhotoGallery Scuola di Danza ON-STAGE

[insert_php] global $post;
$args = array(
‘post_type’ => ‘page’,
‘posts_per_page’ => -1,
‘post_parent’ => $post->ID,
‘orderby’ => ‘menu_order title’,
‘order’ => ‘DESC’,
);

$parent = new WP_Query( $args );
$z = 0;
if ( $parent->have_posts() ) :
while ( $parent->have_posts() ) : $parent->the_post(); print ‘

‘; $z++; if($z % 2 == 0){ print ‘

‘; } endwhile;
endif;
wp_reset_query();
print ‘

‘;
[/insert_php]