Interesting… so I can sortBy ‘date’ and ‘pinned’ (and put pinned at the top). Like this?
$articles = page('blog')->children()->listed()->sortBy('pinned', 'date', 'desc');
Unfortunately my blog articles are sorted by Chronological sorting by date field
The date is being “added” to the Content folder name 20250113_article
And in my template I have this
<?php foreach($page->children()->listed()->flip() as $article): ?>
I’m not sure there is a way of removing a “pinned” article out of the above sorting, and display it at the top of the Blog article list? If not I might pivot to using sortBy
This is leading to the same question I had here
What is the best way to sort Blog Articles?