2

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') %}

1 Answer 1

6

You're close! This should work:

 {% set $fifth_listing = craft.entries.section('listing').level('1').nth(5) %}
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.