I'm attempting to group entries by a custom date field. If I follow the documentation group_by_date="Y|production_year" it presents one grouping with the date 1970. If I add spaces, (group_by_date="Y | production_year") it shows one grouping with 2018.

Code:

   {{ collection:productions complete:exists="true" 
   group_by_date="Y|production_year" sort="production_year" as="entries" }}
             <div>
              {{ date_groups }}
                  <h3>{{ date_group }}</h3>

                  <ul>
                      {{ entries }}
                          <li>{{production_year format="Y"}} | {{ title }}</li>
                      {{ /entries }}
                  </ul>
              {{ /date_groups }}
           </div>
    {{ /collection:productions }}

Result:

<div>

        <h3>1970</h3>

                  <ul>
                            <li>2017 | Christmas Encore</li>
                            <li>2017 | Room for Romance</li>
                            <li>2017 | Cardinal (Cycle 3)</li>
                            <li>2017 | Riot Girls</li>
                            <li>2017 | Angel Falls</li>
                            <li>2018 | Miss Kringle</li>
                            <li>2018 | Jellybean</li>
                            <li>2018 | Goalie</li>
                            <li>2018 | Falls Away From Her</li>
                            <li>2018 | Stranded</li>
                            <li>2018 | Christmas Calendar</li>
                            <li>2018 | Fly by Christmas</li>
                  </ul>

</div>
Answered by Renée Nesseth! Go to answer.