Loop Through CPTs + Group by Custom Taxonomy Terms

This snippet creates a custom WordPress loop of custom post types that are grouped by taxonomy term. The taxonomy term name is output before the set of posts within that taxonomy term. I’ve used this on a custom page template.


Leave a Comment

Your email address will not be published. Required fields are marked *