Section handle: players field handle: teamName
The checkbox field has two options:
- Cubs
- Tigers
Not all players will have the teamName field checked.
I want to order players who are Cubs or Tigers first and order those players by their postDate desc, while ordering the non Cubs/Tigers players by their postDate desc.
{% set players = craft.entries.section('players').orderBy('teamName, postDate desc').all() %}
This kind of works, but it orders Cubs players before Tigers players, regardless of their postDate, so a Cubs player could of been added 30 days ago and still show up before a Tigers player who was added 2 days ago.
I know the teamName is being ordered, I don't know how to add the postDate desc to the teamName logic. It needs to support pagination.