Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$blogs = $pages->findByUID('blog1', 'blog2');
$articles = $blogs->children()->sortBy('date', 'desc');
// if you want you can add a limit or pagination to that set of articles
// afterwards just use a regular foreach loop to go through them all.
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment