I like to get all images in a foreach from all the fields in the CMS that contain the word “GIF” in the name. So not the files that contain the word, but the fields with that title/id. Is this possible?
What I tried:
<?php $items = $site->filterBy('field','*=' , 'gif')->toFiles(); foreach ($items as $item): ?>
...
<?php endforeach ?>