<p>I wasn't able to relate the entries back based on another entry using it in a field. I believe there would be a way to do this if you cycled through all of those relating entries and that field and filtered out the ones that matched to current entry. We ended up using categories instead and relations work much better in there!</p>

CC BY-SA 3.0
2018-04-19T14:37:33.217Z
2018-04-19T14:37:33.217Z
Chattervast
<p>In my projects section, each project entry has a Entry field in a Matrix. The Entry field references a tool. On the tool entry page I am trying to display all the projects that use that tool in their Matrix entry field. How do I do that? Currently I use this code but it doesn't display anything. I'm guessing I need to reference the Matrix handle and Entry field handle somehow but I haven't seen it done yet.</p>

<pre><code>{% set relatedProjects = craft.entries.section('projects').relatedTo(entry) %}

{% for project in relatedProjects %}
    {{ project.title }}
{% endfor %}
</code></pre>

CC BY-SA 3.0
2016-09-23T00:01:55.960Z
Assuming `projectin` is just a typo here?
Brad Bell
<matrix><entry><sections><relatedto>
Find related entries from section entry Matrix entry field
# Find related entries from section entry Matrix entry field

(Asked by: username_0 on 2016-09-22)

In my projects section, each project entry has a Entry field in a Matrix. The Entry field references a tool. On the tool entry page I am trying to display all the projects that use that tool in their Matrix entry field. How do I do that? Currently I use this code but it doesn't display anything. I'm guessing I need to reference the Matrix handle and Entry field handle somehow but I haven't seen it done yet.
{% set relatedProjects = craft.entries.section('projects').relatedTo(entry) %}

{% for project in relatedProjects %}
    {{ project.title }}
{% endfor %}

**Tags:** matrix, entry, sections, relatedto

> **Comments:**
> **username_1**: Assuming `projectin` is just a typo here?  

---

## 1 answers

### Answer by username_0 on 2018-04-19. Score: 1 | Accepted answer

I wasn't able to relate the entries back based on another entry using it in a field. I believe there would be a way to do this if you cycled through all of those relating entries and that field and filtered out the ones that matched to current entry. We ended up using categories instead and relations work much better in there!


---

