Get all posts from categories
From the it looks like you want to get all products grouped by category. Your query seems to be correct except $term_slug need not be in quotes. $tax_post_args = array( ‘post_type’ => ‘bpo_microsoftoffice’, ‘posts_per_page’ => 999, ‘order’ => ‘ASC’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘bpo_microsoftoffice_reg’, ‘field’ => ‘slug’, ‘terms’ => $term_slug ) ) ); … Read more