<pre><code>$entries = Entry::find()-&gt;section('sectionHandle')-&gt;type(['yourTypeHandle'])-&gt;all();
</code></pre>

CC BY-SA 4.0
2018-05-04T10:01:28.537Z
2018-05-04T10:01:28.537Z
Robin Schambach
<p>I'm trying to get all Entries that are from a specific Entry Type.</p>

<p>My Section is "Site".
Which has 3 different Entry Types.</p>

<p>Now I want to get all Entries from the Entry Type "Program".</p>

<p>I'm trying to reach my goal with <code>Craft::$app-&gt;sections-&gt;</code> or <code>Craft::$app-&gt;elements-&gt;</code></p>

<plugin-development><sections><entry-type>
Get Entries from a specific Entry Type
# Get Entries from a specific Entry Type

(Asked by: username_0 on 2018-05-04)

I'm trying to get all Entries that are from a specific Entry Type.

My Section is "Site".
Which has 3 different Entry Types.

Now I want to get all Entries from the Entry Type "Program".

I'm trying to reach my goal with `Craft::$app->sections->` or `Craft::$app->elements->`

**Tags:** plugin-development, sections, entry-type

---

## 1 answers

### Answer by username_1 on 2018-05-04. Score: 3 | Accepted answer

$entries = Entry::find()->section('sectionHandle')->type(['yourTypeHandle'])->all();


---

