‘product’,
‘stock’ => 1,
‘showposts’ => 4,
‘orderby’ =>’date’,
‘order’ => ‘DESC’ ,
‘meta_query’ => array(
array(
‘key’ => ‘_sale_price’,
‘value’ => 0,
‘compare’ => ‘>’,
‘type’ => ‘numeric’
)
)
);
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post(); global $product;
if ( $i == 1 ) {
?>