I'm setting up an FAQ page using a matrix. Each Matrix block contains a question and an answer field. Each Q+A needs to be outputted within a section on the same page such as General, Payments...
I've figured the best way to do this is using categories to assign the Q+As section, limiting each Q+A to one category. I'd then need to output all Q+As for each section with it's category as a header.
Desired Output:
<h2>General</h2>
<p>Question field output</p>
<p>Answer field output</p>
<p>Question field output</p>
<p>Answer field output</p>
<h2>Payments</h2>
<p>Question field output</p>
<p>Answer field output</p>
....
I'm fairly new to craft so perhaps I'm overcomplicating it by assigning it to a category, it seems like it's the easiest way to add new Q+As and for them to appear within the right section.
How would I go about outputting this? I've set up a Category Group called 'faqCategories'
Here's my matrix setup: