after woocomrce 3.0 update featured product using custom query are not showing properly

this is my code.

  <?php
 $meta_query[] = array(
  'key'   => '_featured',
  'value' => 'yes'
  );
  $args = array(
  'post_type'   =>  'product',
    'stock'       =>  1,
  'showposts'   =>  12,
   'orderby'     =>  'date',
   'order'       =>  'DESC',
   'meta_query'  =>  $meta_query
 );



?>

This was working perfect before woocommerce 3.0 update but after that this not shows the correct products.

Read more here: after woocomrce 3.0 update featured product using custom query are not showing properly

Leave a Reply

Your email address will not be published. Required fields are marked *