Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Pages by Category

// WP_Query arguments
$args = array(
	'post_type'              => array( 'page' ),
	'post_status'            => array( 'published' ),
	'nopaging'               => true,
	'posts_per_page'         => '6',
	'tax_query'              => array(
		'relation' => 'AND',
		array(
			'taxonomy'         => 'page_cat',
			'terms'            => '2',
			'field'            => 'term_id',
			'include_children' => true,
		),
	),
);

// The Query
$query = new WP_Query( $args );