I have had several instances where I would like to display items like this:
2023
example 1/2023
example 2/2023
example 3/20232022
example 1/2022
2020
example 1/2020
example 2/2020
The current project is going to be sorting historical The Events Calendar events, but I’ve also had this issue with a date picker field (either post published date or ACF).
I can pull the items like so:
example 1/2023
example 2/2023
example 3/2023
example 1/2022
example 1/2020
example 2/2020
but is it possible to have a looper go through years that have these items, and then feed another looper to display all items in that year?