$pagename ) ); // If we have a 'Services' page if( $query->have_posts() ) { ?>
'page', 'post_parent' => $pagename, 'posts_per_page'=> 12, // This is the parameter passed in to tell how many Service Child Pages to display 'orderby' => 'rand', ); $services_query = new WP_Query( $args ); // The Loop : Displays random Services // If there are Child Pages of 'Services' if ( $services_query->have_posts() ) { ?>
$pagename ) ); if ( $query->have_posts() ) { ?>
'page', 'post_parent' => $pagename, 'posts_per_page'=> 24, 'orderby' => 'rand' ); $clients_query = new WP_Query( $args ); // The Loop if ( $clients_query->have_posts() ) { echo '

' . esc_attr__( 'Clients', 'jinn' ) . '

'; echo ''; } else { // No 'Clients' Child Pages found $incomplete_sections++; $incomplete_section_ids[] = esc_attr__( 'Pages: Individual Client Pages', 'jinn' ); } ?>
$pagename ) ); // The Loop if ( $query->have_posts() ) { ?>
have_posts() ) { $query->the_post(); get_template_part( 'components/features/frontpage/front', 'subpage' ); } ?>
16, 'orderby' => 'desc', 'post_type' => 'jetpack-portfolio' ); $query = new WP_Query( $args ); // The Loop if ( $query->have_posts() ) { ?>

have_posts() ) : $query->the_post(); echo '
'; /* * Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'components/features/portfolio/content', 'portfolio' ); echo '
'; endwhile; ?>
10, 'orderby' => 'rand', 'post_type' => 'jetpack-testimonial', ); $query = new WP_Query( $args ); //The Loop if ( $query->have_posts() ) { ?>
    have_posts() ) : $query->the_post(); if ( '' != get_the_post_thumbnail() ) : ?>
$pages_to_retrieve, 'orderby' => 'rand', 'post_type' => 'post', ); $query = new WP_Query( $args ); // The Loop if ( $query->have_posts() ) { ?>

have_posts() ) : $query->the_post(); echo '
'; get_template_part( 'components/post/content', get_post_format() ); echo '
'; endwhile; ?>
$pagename ) ); // The Loop if ( $query->have_posts() ) { ?>
have_posts() ) : $query->the_post(); get_template_part( 'components/features/frontpage/front', 'subpage' ); endwhile; ?>
0 && is_user_logged_in() ) : ?>

    " . esc_html( $incomplete_section_id ) . ""; } ?>