Answers.Body: <p>Figured it out. I actually asked for all entries for the group, rather than just the entries (events) that matched the date. </p>
  
  <pre><code>{% set passEvents = craft.entries.section("event").eventForwardPass("Yes").status('live','pending').order('eventStartDate').find() %}
  {% for date, events in passEvents|group('eventStartDate') %}
  
      &lt;h3&gt;{{date}}&lt;/h3&gt;
  
      {% for entry in events %}
          &lt;article class="none"&gt;
              &lt;section class=txt&gt;
                 {% if entry.eventLinkOverride == 1 %}
                    &lt;h1&gt;&lt;a href="{{ entry.eventLink }}"&gt;{{ entry.title }}&lt;/a&gt;&lt;/h1&gt;
                  {% else %}
                     &lt;h1&gt;&lt;a href="{{ entry.url }}"&gt;{{ entry.title }}&lt;/a&gt;&lt;/h1&gt;
                  {% endif %}
  
              &lt;/section&gt;
          &lt;/article&gt;
          {% endfor %}
      {% endfor %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-12T08:44:15.597Z
Answers.LastActivityDate: 2018-04-12T08:44:15.597Z
Answers.UserDisplayName: nonprofit_tech
Body: <p>For a week-long schedule, I'm trying to group events that occur on the same day, and also fall into one of two classifications— they are free if a pass is purchased or not included in the pass.</p>
  
  <pre><code>{% set passEvents = craft.entries.section("event").eventForwardPass("No").find() %}
  {% for date, entries in passEvents | group("eventStartDate|date('F d, Y')") %}
  
      &lt;p&gt;ONLY list Non-Forward Pass events.&lt;/p&gt;
  
      &lt;h2&gt;{{date}}&lt;/h2&gt;
      &lt;ul&gt;
        {% for entry in passEvents %}
  
            &lt;li&gt;{{ entry.title }}- {{entry.eventStartDate}}&lt;/li&gt;
  
        {% endfor %}
      &lt;/ul&gt;
  
      &lt;/section&gt;
  
  {% endfor %}
  </code></pre>
  
  <p>I'm only showing the date next to the title to verify when the code works properly. The problem I'm having is this code seems to return all entries that match the 'set' criteria under each date, rather than just the entries that match the 'set' criteria for that particular date.</p>
  
  <p>I'm basing the code off of examples that would normally group by month or year. It seems like I'm asking for the right things, but obviously, the results tell me, that I'm asking for the wrong thing on the loop.</p>
  
Tags: <datetime><group>
Title: Grouping by Date (Day) Not Working Correctly
ThreadText: # Grouping by Date (Day) Not Working Correctly
  
  (Asked by: username_0 on 2018-04-11)
  
  For a week-long schedule, I'm trying to group events that occur on the same day, and also fall into one of two classifications— they are free if a pass is purchased or not included in the pass.
  
  ```
  {% set passEvents = craft.entries.section("event").eventForwardPass("No").find() %}
  {% for date, entries in passEvents | group("eventStartDate|date('F d, Y')") %}
  
      <p>ONLY list Non-Forward Pass events.</p>
  
      <h2>{{date}}</h2>
      <ul>
        {% for entry in passEvents %}
  
            <li>{{ entry.title }}- {{entry.eventStartDate}}</li>
  
        {% endfor %}
      </ul>
  
      </section>
  
  {% endfor %}
  
  ```
  
  I'm only showing the date next to the title to verify when the code works properly. The problem I'm having is this code seems to return all entries that match the 'set' criteria under each date, rather than just the entries that match the 'set' criteria for that particular date.
  
  I'm basing the code off of examples that would normally group by month or year. It seems like I'm asking for the right things, but obviously, the results tell me, that I'm asking for the wrong thing on the loop.
  
  **Tags:** datetime, group
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-04-12. Score: 2
  
  Figured it out. I actually asked for all entries for the group, rather than just the entries (events) that matched the date.
  
  ```
  {% set passEvents = craft.entries.section("event").eventForwardPass("Yes").status('live','pending').order('eventStartDate').find() %}
  {% for date, events in passEvents|group('eventStartDate') %}
  
      <h3>{{date}}</h3>
  
      {% for entry in events %}
          <article class="none">
              <section class=txt>
                 {% if entry.eventLinkOverride == 1 %}
                    <h1><a href="{{ entry.eventLink }}">{{ entry.title }}</a></h1>
                  {% else %}
                     <h1><a href="{{ entry.url }}">{{ entry.title }}</a></h1>
                  {% endif %}
  
              </section>
          </article>
          {% endfor %}
      {% endfor %}
  
  ```
  
  
  ---
  
  