Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Document Category

// WP_Query arguments
$args = array(
	'post_parent'            => 'false',
	'post_type'              => array( 'brandia_document' ),
	'post_status'            => array( 'publish' ),
	'tax_query'              => array(
		'relation' => 'AND',
		array(
			'taxonomy'         => 'docs_meta_ultimate_gutenberg',
			'field'            => 'term_id',
			'operator'         => 'AND',
		),
		array(
			'taxonomy'         => 'post_tag',
			'terms'            => 'giant',
			'field'            => 'slug',
		),
	),
);

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

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

// Restore original Post Data
wp_reset_postdata();