<p>I want to join sections <code>foo</code> and <code>bar</code> in a <code>craft entry query</code>.
Where <code>foo.id</code> = <code>bar.title</code>.</p>
<p>How do I query all records in one go in style like <code>craft.entries.section...</code>?</p>

CC BY-SA 4.0
2022-12-13T10:35:36.203Z
Please post your existing code, describe what's not working about it and what you're trying to do in more detail.
MoritzLost
CC BY-SA 4.0
2022-12-13T16:29:50.910Z
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
Community
<entry><query><join>
How to join sections in craft entry query
# How to join sections in craft entry query

(Asked by: username_0 on 2022-12-13)

I want to join sections `foo` and `bar` in a `craft entry query`.
Where `foo.id` = `bar.title`.

How do I query all records in one go in style like `craft.entries.section...`?

**Tags:** entry, query, join
> **Comments:**
> **username_1**: Please post your existing code, describe what's not working about it and what you're trying to do in more detail.  
> **username_2**: Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.  

---

## 0 answers

