Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

cpt

// WP_Query arguments
$args = array(
	'post_type'              => array( 'post_type' ),
	's'                      => 's',
);

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