Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

ankit test

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

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