I have managed to get the featured posts showing great but I thought by setting the boolean to false
it would then show all the non-featured posts
Any pointers would be great, thanks
This is my code snippet:
<ul class="latest">
<?php $articles = page('articles')->children()->visible()->filter(function ($child) {
return $child->featured()->bool(false);
});
foreach($articles as $article): ?>
<li data-aos="fade-up">
<div class="imgcontainer">
<img src="<?= $article->featuredimage()->toFile()->url() ?>" alt="<?= $article->title() ?>">
</div>
<div class="article">
<h4><a href="<?php echo $article->url() ?>" class="title-link">
<?php echo $article->title()->html() ?></a></h4>
<p>
<?php echo $article->text()->excerpt(200) ?>
</p>
<p class="button"><a href="<?php echo $article->url() ?>" class="readmore button">Full article</a></p>
</div>
</li>
<?php endforeach ?>
</ul>