Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

In Person – Category View

// WP_Query arguments
$args = array(
	'post_type'              => array( 'listing' ),
	'post_status'            => array( 'published' ),
	'posts_per_page'         => '-1',
	'tax_query'              => array(
		'relation' => 'AND',
		array(
			'taxonomy'         => 'category',
			'terms'            => '@category',
			'field'            => 'slug',
			'operator'         => 'IN',
		),
	),
);

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