Answers.Body: <p>This should do it:</p>
  
  <pre><code>{# Get all of the entries in the 'volunteerPosition' section #}
  {% set entries = craft.entries.section('volunteerPosition').find() %}
  
  {# Do we have any %}
  {% if entries|length %}
  
      {# Loop through them #}
      &lt;ul&gt;
          {% for entry in entries %}
              &lt;li&gt;{{ entry.volunteerShortDescription }}
          {% endfor %}
      &lt;/ul&gt;
  
  {% else %}
      {# Nothing to see here #}
      Sorry, nothing to show.
  {% endif %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-12T21:15:24.530Z
Answers.Text: Yep that did it! I just had to change that endif to an endfor for the looping content. Thanks a bunch!
Answers.UserDisplayName: kingkelly
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-12T20:54:52.830Z
Answers.LastActivityDate: 2017-10-13T02:01:47.313Z
Answers.LastEditDate: 2017-10-13T02:01:47.313Z
Answers.UserDisplayName: Brad Bell
Body: <p>I'm having a bit of trouble showing a message if there's no entries in my blog. I tried the length filter but my empty message wont show:</p>
  
  <pre><code>{% for entry in craft.entries.section('volunteerPosition').find() %}
    {% if entry.volunteerPosition|length %}
  
        {{entry.volunteerShortDescription}}
  
    {% else %}
  
        Sorry, Nothing to show.
  
    {% endif %}
  {% endfor %}
  </code></pre>
  
Tags: <entries><filter>
Title: If no blog entries, show something else
ThreadText: # If no blog entries, show something else
  
  (Asked by: username_0 on 2017-10-12)
  
  I'm having a bit of trouble showing a message if there's no entries in my blog. I tried the length filter but my empty message wont show:
  
  ```
  {% for entry in craft.entries.section('volunteerPosition').find() %}
    {% if entry.volunteerPosition|length %}
  
        {{entry.volunteerShortDescription}}
  
    {% else %}
  
        Sorry, Nothing to show.
  
    {% endif %}
  {% endfor %}
  
  ```
  
  **Tags:** entries, filter
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-10-12. Score: 2 | Accepted answer
  
  This should do it:
  
  ```
  {# Get all of the entries in the 'volunteerPosition' section #}
  {% set entries = craft.entries.section('volunteerPosition').find() %}
  
  {# Do we have any %}
  {% if entries|length %}
  
      {# Loop through them #}
      <ul>
          {% for entry in entries %}
              <li>{{ entry.volunteerShortDescription }}
          {% endfor %}
      </ul>
  
  {% else %}
      {# Nothing to see here #}
      Sorry, nothing to show.
  {% endif %}
  
  ```
  
  > **Comments:**
  > **username_0**: Yep that did it! I just had to change that endif to an endfor for the looping content. Thanks a bunch!  
  
  ---
  
  