Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. $tax_query_args = array(
  2. 'post_type' => 'product',
  3. 'tax_query' => array(
  4. array(
  5. 'taxonomy' => 'product_type',
  6. 'field' => 'name',
  7. 'terms' => 'simple',
  8. )
  9. )
  10. );
  11. $tax_query = get_posts($tax_query_args );
  12. global $grouped_product;
  13. foreach ($tax_query as $post ) {
  14. global $post;
  15. $price = get_post_meta( get_the_ID(), '_price', true );
  16.  
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement