1
2
3
4
5
6
7
8
9
10
11
12
13
function carousel() {
	global $post, $pixelstore_mb, $pixelstore_mb_slide;
	$meta = get_post_meta(get_the_ID(), $pixelstore_mb->get_the_id(), TRUE);
	$args = array(
		'post_type' => 'slides',
		'tax_query' => array(
			array(
				'taxonomy' => 'slidesets',
				'terms' => $meta['sliderset']
			)
		)
	);	
	$the_query = new WP_Query( $args );