Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Products from category

$tax_query = array(
	array(
		'taxonomy'         => 'product_cat',
		'terms'            => array( '1', '2' ),
		'field'            => 'term_id',
		'operator'         => 'AND',
		'include_children' => false,
	),
);