Hi everyone,
I want to feature chosen projects on a different page via checkboxes.
This is what I have right now, but it only outputs one project and only works if one checkbox is checked:
<?php foreach(page('editorial')->children()->visible() as $project): ?>
<?php if($project->uid() == $page->feateditorial()): ?>
<figure class="header-intro-img">
<?php if($image = $project->images()->sortBy('sort', 'asc')->first()): ?>
<img src="<?php echo $image->url() ?>" alt="<?php echo $project->title()->html() ?>">
<?php endif ?>
</figure>
<?php endif ?>
<?php endforeach ?>
What is the best way to achieve this with more than one checked checkbox?