Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Tax query – spaceflight opinion

Retrieve video/audio from the spaceflight category and the opinion section.

$tax_query = array(
	'relation' => 'AND',
	array(
		'taxonomy'         => 'category',
		'terms'            => 'spaceflight',
		'field'            => 'slug',
	),
	array(
		'taxonomy'         => 'section',
		'terms'            => 'Opinion',
		'field'            => 'name',
	),
	array(
		'taxonomy'         => 'post_format',
		'terms'            => array( 'post-format-video', 'post-format-audio' ),
		'field'            => 'slug',
		'operator'         => 'IN',
	),
);