<p>As you'll only ever be working with one entry I wouldn't bother with the <code>for</code> loop for the first part of your question. Just set a variable with your featured news article. Something like this (not tested though):</p>

<pre><code>{% set featuredArticle = craft.entries.section('news').first() %}

&lt;div class="container" id="featured-news"&gt;
    &lt;div class=col-md-6&gt;
        &lt;h2 class="news-title"&gt;{{ featuredArticle.title }}&lt;/h2&gt;
        &lt;h3 class="news-date"&gt;{{ featuredArticle.postDate.format('F d, Y') }}&lt;/h3&gt;
        &lt;p&gt;
        {{ featuredArticle.body }}
        &lt;/p&gt;
    &lt;/div&gt;
    &lt;img class="col-md-4" src="images/pic-block-pic1.jpg" style="float:right;"&gt;
    &lt;div class="col-xs-12" &gt;
    &lt;a href="{{ featuredArticle.url }}" style="float:right; padding: 20px 0px 20px 0px"&gt;READ FULL STORY...&lt;/a&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>EDIT: Then for the second part of your question this other answer tells you how to exclude an <code>Entry</code>:</p>

<p><a href="https://craftcms.stackexchange.com/a/1276/142">How can I exclude the current entry when I've structured my syntax like this?</a></p>

<p>So from the other article, you'd do:</p>

<pre><code>{% set entries = craft.entries({
  section: 'news'
}).id('not ' ~ featuredArticle.id) %}
</code></pre>

CC BY-SA 3.0
2016-06-16T12:13:11.253Z
Thanks very much! That worked a treat.

However the other question you linked me didn't help much. I looked at Craft Docs and found .offset(). Where I can .offset(1) and exclude the first entry from being returned.
Richard
CC BY-SA 3.0
2016-06-16T12:25:00.400Z
The other answer I linked gives you much more control, you are explicitly telling it which entry you don't want. Later down the line you might decide that rather than it just being the first news article you want to be featured, you might choose a particular article, `offset` won't help in that instance.
Steve Holland
CC BY-SA 3.0
2016-06-16T11:34:36.223Z
2016-06-16T12:27:17.003Z
2017-04-13T12:50:59.930Z
Steve Holland
<p>I have this this code -</p>

<pre><code>{% for entry in craft.entries.section('news').first() %}
    &lt;div class="container" id="featured-news"&gt;
        &lt;div class=col-md-6&gt;
            &lt;h2 class="news-title"&gt;{{ entry.title }}&lt;/h2&gt;
            &lt;h3 class="news-date"&gt;{{ entry.postDate.format('F d, Y') }}&lt;/h3&gt;

            &lt;p&gt;
                {{ entry.body }}
            &lt;/p&gt;
        &lt;/div&gt;

        &lt;img class="col-md-4" src="images/pic-block-pic1.jpg" style="float:right;"&gt;

        &lt;div class="col-xs-12" &gt;
            &lt;a href="{{ entry.url }}" style="float:right; padding: 20px 0px 20px 0px"&gt;READ FULL STORY...&lt;/a&gt;
        &lt;/div&gt;
    &lt;/div&gt;
{% endfor %}
</code></pre>

<p>I thought the <code>.first()</code> would pick up just the first news story, however it is returning the same container several times.</p>

<p>I then want to return all other entries elsewhere, so what should I include in my code below to do this - </p>

<pre><code>&lt;div class="imgOverview"&gt;
    &lt;ul&gt;
        {% for entry in craft.entries.section('news').find() %}
            &lt;li&gt;
                &lt;div&gt;&lt;img src="images/pic-block-pic1.jpg" alt=""&gt;&lt;div class="imgOverviewOverlay"&gt;&lt;a href="{{ entry.url }}"&gt;&lt;span&gt;{{ entry.title }}&lt;small&gt;{{ entry.postDate.format('F d, Y') }}&lt;/small&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
            &lt;/li&gt;
        {% endfor %}    
    &lt;/ul&gt;
&lt;/div&gt;
</code></pre>

<templating><entry><loop>
How do I get just the first entry with a 'for' loop?
# How do I get just the first entry with a 'for' loop?

(Asked by: username_0 on 2016-06-16)

I have this this code -
{% for entry in craft.entries.section('news').first() %}
    
        
            {{ entry.title }}
            {{ entry.postDate.format('F d, Y') }}

            
                {{ entry.body }}
            
        

        

        
            READ FULL STORY...
        
    
{% endfor %}

I thought the .first() would pick up just the first news story, however it is returning the same container several times.
I then want to return all other entries elsewhere, so what should I include in my code below to do this - 

    
        {% for entry in craft.entries.section('news').find() %}
            
                {{ entry.title }}{{ entry.postDate.format('F d, Y') }}
            
        {% endfor %}

**Tags:** templating, entry, loop

---

## 1 answers

### Answer by username_1 on 2016-06-16. Score: 5

As you'll only ever be working with one entry I wouldn't bother with the for loop for the first part of your question. Just set a variable with your featured news article. Something like this (not tested though):
{% set featuredArticle = craft.entries.section('news').first() %}


    
        {{ featuredArticle.title }}
        {{ featuredArticle.postDate.format('F d, Y') }}
        
        {{ featuredArticle.body }}
        
    
    
    
    READ FULL STORY...
    


EDIT: Then for the second part of your question this other answer tells you how to exclude an Entry:
How can I exclude the current entry when I've structured my syntax like this?
So from the other article, you'd do:
{% set entries = craft.entries({
  section: 'news'
}).id('not ' ~ featuredArticle.id) %}

> **Comments:**
> **username_0**: Thanks very much! That worked a treat.  However the other question you linked me didn't help much. I looked at Craft Docs and found .offset(). Where I can .offset(1) and exclude the first entry from being returned.  
> **username_1**: The other answer I linked gives you much more control, you are explicitly telling it which entry you don't want. Later down the line you might decide that rather than it just being the first news article you want to be featured, you might choose a particular article, `offset` won't help in that instance.  

---

