Custom post type loop split/ordered by taxonomy

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:

  • General
  • Rules
  • Payment

…etc

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:

General

  • Question one
  • Question two
  • Question three

Rules

  • Question four
  • Question five
  • Question six

Payment

  • Question seven
  • Question eight
  • Question nine

… etc etc

Read more here: Custom post type loop split/ordered by taxonomy

Leave a Reply

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