Advertisement
developerjustin

Untitled

Jul 14th, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1.                                         $args = array(
  2.                                             'post_type' => 'product',
  3.                                             'posts_per_page'=>3,
  4.                                             'product_cat' => $term->slug,
  5.                                             'product_tag' => "kennys-picks",
  6.                                             'meta_key'       => 'total_sales',
  7.                                             'orderby'        => 'meta_value',
  8.                                             'meta_query' => array(
  9.                                                 array(
  10.                                                  'key' => '_visibility',
  11.                                                  'value' => array( 'catalog', 'visible' ),
  12.                                                  'compare' => 'IN'
  13.                                             ))                                         
  14.                                         );
  15.                                         $sub_query = new WP_Query( $args );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement