<p>You're close! This should work:</p>

<pre><code> {% set $fifth_listing = craft.entries.section('listing').level('1').nth(5) %}
</code></pre>

CC BY-SA 3.0
2015-12-18T16:08:50.483Z
Is that an undocumented parameter? It's not listed here: https://craftcms.com/docs/templating/craft.entries
erwinheiser
CC BY-SA 3.0
2015-12-18T16:16:15.940Z
The `craft.entries` tag returns an `ElementCriteriaModel`. The `nth()` function is listed in the `ElementCriteriaModel` docs here: https://craftcms.com/docs/templating/elementcriteriamodel#nth.
Steve Rowling
CC BY-SA 3.0
2015-12-17T15:37:29.460Z
2015-12-17T15:37:29.460Z
Steve Rowling
<p>I guess I could always loop through the structure but is there a simple way to directly get the n-th entry in a structure? (at a given level)
Something like:</p>

<pre><code>{% set $fifth_listing = craft.entries.section('listing').level('1').pos('5') %}
</code></pre>

<entries><structure>
Getting the n-th entry in a structure
# Getting the n-th entry in a structure

(Asked by: username_0 on 2015-12-17)

I guess I could always loop through the structure but is there a simple way to directly get the n-th entry in a structure? (at a given level)
Something like:
{% set $fifth_listing = craft.entries.section('listing').level('1').pos('5') %}

**Tags:** entries, structure


---

## 1 answers

### Answer by username_1 on 2015-12-17. Score: 6 | Accepted answer

You're close! This should work:
 {% set $fifth_listing = craft.entries.section('listing').level('1').nth(5) %}

> **Comments:**
> **username_0**: Is that an undocumented parameter? It's not listed here: https://craftcms.com/docs/templating/craft.entries  
> **username_1**: The `craft.entries` tag returns an `ElementCriteriaModel`. The `nth()` function is listed in the `ElementCriteriaModel` docs here: https://craftcms.com/docs/templating/elementcriteriamodel#nth.  

---

