12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- /**
- * Template part for displaying content of grid page templates.
- *
- * @package Pique
- */
- ?>
- <?php
- $pique_child_pages = new WP_Query( array(
- 'post_type' => 'page',
- 'orderby' => 'menu_order',
- 'order' => 'ASC',
- 'post_parent' => $post->ID,
- 'posts_per_page' => 12,
- 'no_found_rows' => true,
- ) );
- ?>
- <?php if ( $pique_child_pages->have_posts() ) : ?>
- <div class="pique-grid-three">
- <?php while ( $pique_child_pages->have_posts() ) : $pique_child_pages->the_post(); ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <?php
- if ( has_post_thumbnail() ) :
- the_post_thumbnail( 'pique-square' );
- endif;
- ?>
- <?php the_title( '<h3>' , '</h3>' ); ?>
- <?php the_content(); ?>
- </article>
- <?php endwhile; ?>
- </div><!-- .child-pages .grid -->
- <?php
- endif;
- wp_reset_postdata();
- ?>
|