I’m setting up a FAQs page. I’ve created a custom post type called “Questions” with a custom taxonomy called “Sections”.
Within the sections I’ve created several categories:
There’s 90 questions all categorised within one of the sections. I’d like to output the loop/query so that each question sits under its section heading. If new sections or questions are added they will automatically get generated in the loop.
The output would be something like this:
- Question one
- Question two
- Question three
- Question four
- Question five
- Question six
- Question seven
- Question eight
- Question nine
… etc etc
Read more here: Custom post type loop split/ordered by taxonomy