Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $args = array(
- 'post_type' => 'product',
- 'posts_per_page'=>3,
- 'product_cat' => $term->slug,
- 'product_tag' => "kennys-picks",
- 'meta_key' => 'total_sales',
- 'orderby' => 'meta_value',
- 'meta_query' => array(
- array(
- 'key' => '_visibility',
- 'value' => array( 'catalog', 'visible' ),
- 'compare' => 'IN'
- ))
- );
- $sub_query = new WP_Query( $args );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement