Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

post in category

// WP_Query arguments
$args = array(
	'post_type'              => array( 'post' ),
	'post_status'            => array( 'publish' ),
	'nopaging'               => false,
	'posts_per_page'         => '12',
);

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