Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Listings Query

// WP_Query arguments
$args = array (
	'post_type'              => 'listings',
	'pagination'             => true,
	'posts_per_page'         => '20',
	'posts_per_archive_page' => '20',
	'ignore_sticky_posts'    => true,
	'order'                  => 'DESC',
	'orderby'                => 'date',
	'cache_results'          => true,
	'update_post_meta_cache' => true,
	'update_post_term_cache' => true,
);

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