The output would look something like this with each term in team_category and the posts in that category below each:
Jane Doe
John Smith
Tom Johnson
Angie Mark
Jill Mitchell
George Jackson
<!-- Team CPT (team_member), and Team Category (team_category) - Separeted into their categories --> | |
<!-- Note: In this case, the order of the taxonomy matters, so we will use a plugin to set | |
menu order of team_category and use orderby=menu_order to respect that order instead of just outputting it in alpha order --> | |
<Loop type=taxonomy_term taxonomy=team_category orderby=menu_order> | |
<h2><Field title /></h2> | |
<Loop type=team_member taxonomy=team_category terms="{Field id}"> | |
<Field title /> | |
</Loop> | |
</Loop> |