Group Custom post type in a page by its taxomony tag
If I follow your question correctly you could use a nested query loop, that is looping through your taxonomy terms and then doing a WP_Query loop for each one. There is a more complicated approach using custom SQL and a filter but the following example is what I would go for: $terms = get_terms(“locations”); $count … Read more