How do I target the 3rd entry and only that entry? I am trying to build an Index page and assign a specific card template to the 3rd entry and only the 3rd entry. 

{% set items = craft.entries.section('posts').all() %}

{% for cardC in items.offset(2).limit(1) %}

    &lt;div class="col-md-12"&gt;
        &lt;div class="card card-raised card-background" style="background-image: url('{{ cardC.postImage.one().getUrl() }}')"&gt;
            &lt;div class="card-body"&gt;
                &lt;h6 class="card-category text-info"&gt;Marketing&lt;/h6&gt;
                &lt;h3 class="card-title"&gt;{{ cardC.title }}&lt;/h3&gt;
                &lt;p class="card-description"&gt;
                   {{ cardC.introParagraph }}
                &lt;/p&gt;
                &lt;a href="" class="btn btn-warning btn-round"&gt;
                    &lt;i class="material-icons"&gt;subject&lt;/i&gt; Read Case Study
                &lt;/a&gt;
                &lt;a href="" class="btn btn-white btn-just-icon btn-link" title="" rel="tooltip" data-original-title="Save to Pocket"&gt;
                    &lt;i class="fa fa-get-pocket"&gt;&lt;/i&gt;
                &lt;/a&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;

{% endfor %}


I also tried {% for cardC in items.nth(3 )%}.

I get the following **error message**:


  Impossible to invoke a method ("offset") on an array.


I created the set because I need to apply templates for the other entries, etc.
As soon as you apply .all(), the variable you're working with becomes an array. Which means that the .offset(2) needs to be applied before you convert it into an array.



UPDATE

As @andrew.welch points out in the comments, it's as easy as grabbing the third item in your array...

items[2]


Ultimately, it looks like you want something like this...

{% set cardC = items[2] %}

{% if cardC %}

    {# ... the rest of your code #}

{% endif %}




ORIGINAL ANSWER

Once it's an array, you'll need to use the Twig syntax instead...

items[2:1]


Which translates to: "get third item (0-based index), limit of one".