Chaining Taxonomy Queries
Use get_categories to return the terms in each taxonomy then loop through each getting the posts. $args = array( ‘taxonomy’ => ‘meal_time’ ); $meal_times = get_categories( $args ); foreach ( $meal_times as $meal ) { echo ‘<h3 class=”meal-title”>’ . $meal->cat_name . ‘</h3>’; //Shows the term name as the title then loops through courses $child_args = … Read more