‘product’, ‘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; ?>
get_price_html(); ?>
Promoção: get_date_on_sale_from() ? $product->get_date_on_sale_from()->date(‘d/m/Y’) : ”; ?> até get_date_on_sale_to() ? $product->get_date_on_sale_to()->date(‘d/m/Y’) : ”; ?>