I'd like to have an archive of a CPT grouped by the terms of a specific taxonomy associated with that CPT (and only that CPT).
For example, let's say I have a CPT called "Portfolio" and it has a taxonomy called "Subject." Let's say Subject has three terms: Cats, Dogs, and Horses.
The Portfolio archive page would have:
"Cats" and then show the Cats Portfolio items,
"Dogs" and then show the Dogs Portfolio items,
"Horses" and then show the Horses Portfolio items.
The CPT and taxonomies are coded by hand (no plugins). I'm not sure how to set up the query and loop to set up the archive page as I've described.
Thanks for you help!