Display custom posts for each category from its custom taxonomy
For those who wanted to know: <?php $cat_args = array( ‘taxonomy’ => ‘service_sections’, ‘orderby’ => ‘slug’, ‘order’ => ‘ASC’ ); $cats = get_categories($cat_args); // passing in above parameters foreach ($cats as $cat) : // loop through each cat $cpt_query_args = new WP_Query( array( ‘post_type’ => ‘services’, ‘service_sections’ => $cat->name ) ); if ($cpt_query_args->have_posts()) : ?> … Read more