Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Test T Query

// WP_Query arguments
$args = array (
	'post_type'              => 'testimonial',
	'post_status'            => 'published',
);

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