Hi there,
I’m trying to create a slider and grab every picture from an album to work as a slide.
I’m just wondering why when using the code below, all the images appear as links instead of images:
<!-- Slides -->
<div class="swiper-slide"> <?php
// the `cover()` method defined in the `album.php` page model can be used
// everywhere across the site for this type of page
if ($slide = $album->images()): ?>
<?= $slide ?>
<?php endif ?>
</div>
I’m sure I’m missing something.
Thanks in advance for the ghelp.