2 votes

OrderBy section when selecting multiple sections in entries query

I've faced this a few times and solved it like this: {% set entries = craft.entries.section([ 'section1', 'section2', 'section3', ]).all() %} {# group the results by section handle #} {% ...
user avatar
  • 3,924
1 vote

OrderBy section when selecting multiple sections in entries query

Since posting the original question, I have also solved this like so: {% set aboutPages = craft.entries.section(['about']).all() %} {% set newsPage = craft.entries.section('newsIndex').one() %} {% set ...
user avatar
  • 1,824

Only top scored, non community-wiki answers of a minimum length are eligible