<p>I think you're looking for the <code>getSiblings()</code> method. This will return all sibling entries for the current entry. You can also use <code>getParent()</code> to get the parent entry and <code>getChildren()</code> to get the entries child entries.</p>

<p>An example implementation is below:</p>

<pre><code>{% set siblings = entry.getSiblings() %}
{% set parent = entry.getParent() %}
{% set children = entry.getChildren() %}

{% if parent|length %}
  &lt;h2&gt;Parent&lt;/h2&gt;
  &lt;p&gt;{{ parent.title }}&lt;/p&gt;
{% endif %}

{% if siblings|length %}
  &lt;h2&gt;Siblings&lt;/h2&gt;
  {% for entry in siblings %}
    &lt;p&gt;{{ entry.title }}&lt;/p&gt;
  {% endfor %}
{% endif %}

{% if children|length %}
  &lt;h2&gt;Children&lt;/h2&gt;
  {% for entry in children %}
    &lt;p&gt;{{ entry.title }}&lt;/p&gt;
  {% endfor %}
{% endif %}
</code></pre>

<p>More info on these methods can be found in the <a href="https://craftcms.com/docs/templating/entrymodel#getSiblings" rel="nofollow">EntryModel documentation</a>.</p>

CC BY-SA 3.0
2016-05-20T10:31:09.567Z
2016-05-20T10:31:09.567Z
Luke Pearce
<p>When I view a entry that's belong to a small group of children with a parent assigned. When I view the child, I want to display list all children that the child assigned to? </p>

<p>Is there anyway to achieve this method?</p>

<templating>
Show active parent's listed children when viewing it children
# Show active parent's listed children when viewing it children

(Asked by: username_0 on 2016-05-20)

When I view a entry that's belong to a small group of children with a parent assigned. When I view the child, I want to display list all children that the child assigned to?

Is there anyway to achieve this method?

**Tags:** templating

---

## 1 answers

### Answer by username_1 on 2016-05-20. Score: 3 | Accepted answer

I think you're looking for the getSiblings() method. This will return all sibling entries for the current entry. You can also use getParent() to get the parent entry and getChildren() to get the entries child entries.
An example implementation is below:
{% set siblings = entry.getSiblings() %}
{% set parent = entry.getParent() %}
{% set children = entry.getChildren() %}

{% if parent|length %}
  Parent
  {{ parent.title }}
{% endif %}

{% if siblings|length %}
  Siblings
  {% for entry in siblings %}
    {{ entry.title }}
  {% endfor %}
{% endif %}

{% if children|length %}
  Children
  {% for entry in children %}
    {{ entry.title }}
  {% endfor %}
{% endif %}

More info on these methods can be found in the EntryModel documentation.


---

