Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

test_ddn

// WP_Query arguments
$args = array(
	'pagename'               => 'kkk',
	'post_type'              => array( 'test_ddn' ),
	'nopaging'               => false,
	'posts_per_page'         => '6',
	'posts_per_archive_page' => '20',
	'offset'                 => '2',
	'order'                  => 'DESC',
	'orderby'                => 'date',
	'tax_query'              => array(
		array(
			'taxonomy'         => 'company',
			'terms'            => array( 'terms1', ' terms2' ),
			'field'            => 'slug',
		),
	),
);

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

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

// Restore original Post Data
wp_reset_postdata();