We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Get collection items from the same year as the current item

Brendan Falkowski July 6, 2020 by Brendan Falkowski

I had a little trouble filtering a collection to a specific year — ex: all of 2014.

These didn't work how I guessed:

# Nope
{{ collection:videos since="2014" until="2014" }}

# Nope
{{ collection:videos since="2014" until="2015" }}

# Nope
{{ collection:videos date:is_between:"2014-01-01":"2014-12-31" }}

So I found an alternative using a conditional inside the loop. Answer below.

Answered by Brendan Falkowski!
>>>>>>> Answered <<<<<<<
1 Reply
1 Follower