Inner loop through pages related to a taxonomy term, and outer loop through taxonomy terms

Hey there! I am trying to figure out how to create the following structure for a section list template:

<outer div>
    {{ Cycle through all unique taxonomy terms called 'service-categories' }}
        <inner div>
            {{ cycle through all pages belonging to each service category }}
                 <display the contents and some params from each of these pages>
            {{ end }}
        </inner div>
    {{ end }}
</outer div>

I cannot seem to figure out how that should work. Does anyone have an idea? Or maybe a different solution?

Thank you ever so much!

That sounds like this, and if not, it might set you in the right direction:

Hey, man. Thanks for the assist. That might just be it.

1 Like