<p>Try using .level(1)</p>

<pre><code>{% for eventsEntry in craft.entries.section('events').level(1) %}
    &lt;div&gt;
        {% set image = eventsEntry.pic.first() %}

        {% if image %}
            &lt;img src="{{ image.getUrl('thumb') }}" alt="{{image.title}}"/&gt;
        {% endif %}

        &lt;h4 class="center"&gt;{{ eventsEntry.title }}&lt;/h4&gt;

        {{ eventsEntry.shortDescription }}
    &lt;/div&gt;
{% endfor %}
</code></pre>

CC BY-SA 3.0
2017-03-13T16:06:44.323Z
2017-03-13T17:45:30.583Z
2017-03-13T17:45:30.583Z
user6425
<p>You can access children through the entry's <code>descendants</code> property.</p>

<pre><code>{# display event-information #}
&lt;ul&gt;
    &lt;li&gt;&lt;a href="{{ entry.url }}"&gt;{{ entry.title }}&lt;/a&gt;
    {# display subsections #}
        &lt;ul&gt;
            {% for subsection in entry.descendants %}
                &lt;li&gt;&lt;a href="{{ subsection.url }}"&gt;{{ subsection.title }}&lt;/a&gt;&lt;/li&gt;
            {% endfor %}
        &lt;/ul&gt;
    &lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>You can also use the <code>nav</code> tag, as described <a href="http://buildwithcraft.com/docs/templating/nav" rel="nofollow noreferrer">in the documentation</a>.</p>

<pre><code>&lt;ul id="nav"&gt;
    {% nav entry in entries %}
        &lt;li&gt;
            &lt;a href="{{ entry.url }}"&gt;{{ entry.title }}&lt;/a&gt;
            {% ifchildren %}
                &lt;ul&gt;
                    {% children %}
                &lt;/ul&gt;
            {% endifchildren %}
        &lt;/li&gt;
    {% endnav %}
&lt;/ul&gt;
</code></pre>

<p>More generally speaking, you can use any of the following properties of the <a href="https://buildwithcraft.com/classreference/models/EntryModel" rel="nofollow noreferrer">EntryModel</a> to traverse the structure: <code>parent</code>, <code>children</code>, <code>descendants</code>, <code>ancestors</code>, <code>siblings</code>, <code>nextSibling</code>, <code>prevSibling</code>, and <code>level</code>.</p>

CC BY-SA 3.0
2017-04-17T21:20:10.917Z
Worth noting that the top example has a typo on line 7, the `<li>` element isn't closed, but rather a second `<li>`.
Christopher Kennedy-Nuñez
CC BY-SA 3.0
2017-04-19T22:04:26.093Z
@ChristopherRobertKennedy Thanks! Fixed. Btw... feel free to edit when you find an obvious error like that, assuming you have permission.
Douglas McDonald
CC BY-SA 3.0
2017-04-20T01:11:46.527Z
For some reason, I was having problems accessing the edit feature in Chrome. Seems to work for me in Safari now, though. ¯\_(ツ)_/¯
Christopher Kennedy-Nuñez
CC BY-SA 3.0
2015-01-26T17:25:29.493Z
2018-01-22T21:57:20.740Z
2018-01-22T21:57:20.740Z
Douglas McDonald
<p>Newbie here with hopefully a simple question...</p>

<p>I have a structure as per the image below where I want to only show the parent item and it's children on their pages. </p>

<p>I want to exclude the other entries but they should show on their own pages. </p>

<p><img src="https://i.sstatic.net/bxzXd.jpg" alt="My structure"></p>

<structure><navigation><children>
Show parent and it's children as a nav
# Show parent and it's children as a nav

(Asked by: username_0 on 2015-01-26)

Newbie here with hopefully a simple question...

I have a structure as per the image below where I want to only show the parent item and it's children on their pages.

I want to exclude the other entries but they should show on their own pages.

![My structure](https://i.sstatic.net/bxzXd.jpg)

**Tags:** structure, navigation, children

---

## 2 answers

### Answer by username_2 on 2015-01-26. Score: 6 | Accepted answer

You can access children through the entry's descendants property.
{# display event-information #}

    {{ entry.title }}
    {# display subsections #}
        
            {% for subsection in entry.descendants %}
                {{ subsection.title }}
            {% endfor %}
        
    


You can also use the nav tag, as described in the documentation.

    {% nav entry in entries %}
        
            {{ entry.title }}
            {% ifchildren %}
                
                    {% children %}
                
            {% endifchildren %}
        
    {% endnav %}


More generally speaking, you can use any of the following properties of the EntryModel to traverse the structure: parent, children, descendants, ancestors, siblings, nextSibling, prevSibling, and level.

> **Comments:**
> **username_3**: Worth noting that the top example has a typo on line 7, the `<li>` element isn't closed, but rather a second `<li>`.  
> **username_2**: @ChristopherRobertKennedy Thanks! Fixed. Btw... feel free to edit when you find an obvious error like that, assuming you have permission.  
> **username_3**: For some reason, I was having problems accessing the edit feature in Chrome. Seems to work for me in Safari now, though. ¯\_(ツ)_/¯  

---

### Answer by username_1 on 2017-03-13. Score: 0

Try using .level(1)
{% for eventsEntry in craft.entries.section('events').level(1) %}
    
        {% set image = eventsEntry.pic.first() %}

        {% if image %}
            
        {% endif %}

        {{ eventsEntry.title }}

        {{ eventsEntry.shortDescription }}
    
{% endfor %}


---

