Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Query Single Brand 1

// WP_Query arguments
$args = array(
	'p'                      => '987',
	'post_type'              => array( 'sqppbrand' ),
	'nopaging'               => true,
);

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

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

// Restore original Post Data
wp_reset_postdata();