How can I retrieve all the related entries? I have 3 entries. One of the entries got the entries field where Ive attached the two other entries. Im trying to display all the related entries whether entry 1, 2 or 3 is chosen.

For example:


Entry 1: Has the entries field. When this entry is selected, I need to show entry 2 and 3
Entry 2:  When this entry is selected I need to show entry 1 and 3 
Entry 3:  When this entry is selected I need to show entry 1 and 2


Is this possible?
This is more tricky then I first thought. I hope this is what you need:

In case the current entry element is not the source of your relation, find that source entry first. This entry then goes into the relatedTo parameter of a new ElementCriteriaModel, where we exclude the current entry entry using its ID.

Code is probably more easy to understand than my wobbling english explanation: 

&lt;h1&gt;{{ entry.title }}&lt;/h1&gt;
{{ entry.body }}

{# Get `allRelatedEntries` if this `entry` is the "source element" of the relation #}
{% set allRelatedEntries = craft.entries.relatedTo({ sourceElement: entry }) %}

{# Get `allRelatedEntries` if this `entry` is the "target element" of the relation #}
{% if not allRelatedEntries|length %}
    {% set sourceElement = craft.entries.relatedTo({ targetElement: entry }).first() %}

    {# Any relations at all? #}
    {% if sourceElement %}
        {% set targetElements = craft.entries.relatedTo({ sourceElement: sourceElement }).id('not ' ~ entry.id).find() %}
        {% if targetElements|length %}
            {% set allRelatedEntries = targetElements|merge([sourceElement]) %}
        {% endif %}
    {% endif %}

{% endif %}

{% if allRelatedEntries|length %}

    &lt;h2&gt;Related Entries&lt;/h2&gt;
    &lt;ul&gt;
        {% for relatedEntry in allRelatedEntries %}
            &lt;li&gt;{{ relatedEntry.title }}&lt;/li&gt;
        {% endfor %}
    &lt;/ul&gt;

{% endif %}