Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

all branches

// WP_Query arguments
$args = array(
	'post_type'              => array( 'wpsl_stores' ),
	'post_status'            => array( 'publish' ),
	'posts_per_page'         => '10',
	'meta_query'             => array(
		'relation' => 'AND',
		array(
			'key'     => 'meetup_ambassador',
			'value'   => '12',
		),
	),
);

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

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

// Restore original Post Data
wp_reset_postdata();