List of post categories only associated to another custom taxonomy
Here’s what I come up with, looks like it’s working. But maybe (surely) there’s a more efficient way to do the same: // current queried $term = ‘sector’; $current_sector_id = get_queried_object_id(); // Prepare wp_query to get all posts assigned to the current “sector” $sector_posts_query = new WP_Query(); $sector_posts_query->query( array( ‘post_type’ => ‘post’, ‘posts_per_page’ => -1, … Read more