1

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->

3
$entries = Entry::find()->section('sectionHandle')->type(['yourTypeHandle'])->all();
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.