Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Quick Links (S+SS)

// WP_Query arguments
$args = array(
	'post_type'              => array( 'quick-links' ),
	'posts_per_page'         => '4',
	'tax_query'              => array(
		array(
			'taxonomy'         => 'location',
			'terms'            => 'home',
			'field'            => 'slug',
		),
	),
);

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

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

// Restore original Post Data
wp_reset_postdata();