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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: