3 votes
Accepted

Excluding entries in an entry query with an array of IDs (PHP)

The implode function will turn the array of IDs into a comma-separated string. Then you're putting that into an array with 'not' as the first element, so the parameter you're passing to id() looks ...
MoritzLost's user avatar
  • 11.2k
2 votes
Accepted

Get children of multiple entries

There's a method available to all element queries called getDescendants() (or like any method in Yii you can omit the get prefix and use descendants()): {% for child in craft.entries.id([4,35])....
James Smith's user avatar
  • 5,144
1 vote

Get children of multiple entries

Why don't you get the children from each entry individually and then merge them together like so: {% set childrenOne = craft.entries.id(entryID).one().children.all() %} {% set childrenTwo = craft....
Droemmelbert's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible