Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Show Gallery

// WP_Query arguments
$args = array(
	'post_type'              => array( 'gallery' ),
	'posts_per_page'         => '100',
	'order'                  => 'ASC',
	'orderby'                => 'title',
	'tax_query'              => array(
		array(
			'taxonomy'         => 'category',
			'terms'            => 'non-porsche',
			'field'            => 'slug',
		),
	),
);

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