Fetch images from children that have certain metadata applied to them

Yeah it does. I’ve also found another post on the topic and kind of tried to combine the two. This is what I got so far, still doesn’t work though:

<?php
$featuresImages = new ArrayObject();
foreach(page('projects')->children() as $child) {
  $images = $child->images()->filterBy("frontpageFeature", "true");
  foreach($images as $image) {
    $featuresImages->append($image);
  }
};
?>
1 Like