Hi all - Aware this is a stupidly simple question, but am after a way to loop images from a specific page. I’ve certainly done it before but brain has gone to mush and was hoping someone could help.
In the example below the template ‘accreditations’ is the page i’m targeting, and i just want to show the images from that page. The code below doesn’t work though.
<?php foreach($page('accreditations')->images() as $image): ?> <a href="<?= $image->url() ?>"> <img src="<?= $image->url() ?>" alt=""> </a> <?php endforeach ?>