Skip to content

Instantly share code, notes, and snippets.

@bonny
Created February 22, 2013 09:33
Show Gist options
  • Save bonny/5012091 to your computer and use it in GitHub Desktop.
Save bonny/5012091 to your computer and use it in GitHub Desktop.
<?php
// Get the pages 1,2 and 3 and do some things with them
with_posts("1,2,3'", function() {
echo "<p>Found a post with title: " . get_the_title() . "</p>";
});
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment