Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $tax_query_args = array(
- 'post_type' => 'product',
- 'tax_query' => array(
- array(
- 'taxonomy' => 'product_type',
- 'field' => 'name',
- 'terms' => 'simple',
- )
- )
- );
- $tax_query = get_posts($tax_query_args );
- global $grouped_product;
- foreach ($tax_query as $post ) {
- global $post;
- $price = get_post_meta( get_the_ID(), '_price', true );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement