Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $posts = get_posts(array(
- 'posts_per_page' => 10,
- 'post_type' => 'company_product',
- 'tax_query' => array(
- array(
- 'taxonomy' => 'taxonomy',
- 'field' => 'slug',
- 'terms' => 'product1'
- ),
- ));
- $posts = get_posts(array(
- 'posts_per_page' => 10,
- 'post_type' => 'company_product',
- 'tax_query' => array(
- if( have_rows('category_taxonomies') ):
- while ( have_rows('category_taxonomies') ) : the_row();
- array(
- 'taxonomy' => 'taxonomy',
- 'field' => 'slug',
- 'terms' => the_sub_field('category_taxonomy')
- ),
- endwhile;
- endif;
- ));
Add Comment
Please, Sign In to add comment