Skip to content

Instantly share code, notes, and snippets.

@bastianallgeier
Created November 26, 2012 09:40
Show Gist options
  • Save bastianallgeier/4147413 to your computer and use it in GitHub Desktop.
Save bastianallgeier/4147413 to your computer and use it in GitHub Desktop.
<?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