Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

query snipset

loop arguments

// WP_Query arguments
$args = array (
	'post_id'                => 'postid',
	'post_name'              => 'postname',
	'page_id'                => 'pageid',
	'page_name'              => 'pagename',
	'post_parent'            => 'parentpage',
	'post_type'              => 'postype',
	'post_status'            => 'poststatut',
	'author'                 => 'authorid',
	'author_name'            => 'authorname',
	'pagination'             => true,
	'posts_per_page'         => '5',
	'posts_per_archive_page' => '5',
	'ignore_sticky_posts'    => true,
	'offset'                 => '5',
	'order'                  => 'ASC',
	'orderby'                => 'menu_order',
);

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

// The Loop
if ( quantum->have_posts() ) {
	while ( quantum->have_posts() ) {
		quantum->the_post();
		// do something
	}
} else {
	// no posts found
}

// Restore original Post Data
wp_reset_postdata();