Output posts separated by category

@zack has shared a template that demonstrates how to get a list of posts broken out into sections by category.

Preview
image

Markup

<Loop type=taxonomy_term taxonomy=team_category orderby=menu_order>
  <h2><Field title /></h2>
  <Loop type=post post_type=team_member taxonomy=team_category terms="{Field id}">
    <Field title />
  </Loop>
</Loop>

Check it out in the template repository →

Submit your own template →

1 Like