Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Query Videos Cat 1

FH

// WP_Query arguments
$args = array(
	'post_type'              => array( 'vimeo-video', ' production', ' video-clip', ' fundinfo-video' ),
	'post_status'            => array( 'publish' ),
	'posts_per_page'         => '20',
	'order'                  => 'DESC',
	'orderby'                => 'date',
	'tax_query'              => array(
		array(
			'taxonomy'         => 'sqpptaxovideocat',
			'terms'            => '$postvideocat',
			'field'            => 'slug',
			'include_children' => false,
		),
	),
);

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

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

// Restore original Post Data
wp_reset_postdata();