[pages]
id
- Optional. The Post ID. Default value is the ID of the current page.size
- Optional. The size of the post thumbnail. Default ispost-thumbnail
.col
- Optional. Width of the child page block. Default is3
.
<?php
// Query args for WP_Query.
$query = array(
'post_status' => 'publish',
'post_type' => 'page',
'post_parent' => 0,
'orderby' => 'menu_order',
'order' => 'ASC',
'nopaging' => true,
);
// Optional, the number of columns. The default value is `3`.
$col = 3;
// Optional, the size of the image. The default value is `post-thumbnail`.
$thumbnil_size = 'post-thumbnail';
if ( class_exists( '_Pages' ) ) {
echo _Pages::get_instance()->display( $query, $col, $thumbnil_size );
}