Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Products up to 100$

Display “Products” filtered with the “price” custom-field.

// WP_Query arguments
$args = array (
	'post_type'              => array( 'product' ),
	'meta_query'             => array(
		array(
			'key'       => 'price',
			'value'     => '100',
			'compare'   => '>=',
			'type'      => 'NUMERIC',
		),
	),
);

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