Skip to content

Instantly share code, notes, and snippets.

@chrismeller
Created October 27, 2011 02:21
Show Gist options
  • Save chrismeller/1318621 to your computer and use it in GitHub Desktop.
Save chrismeller/1318621 to your computer and use it in GitHub Desktop.
<?php
foreach ( $posts as $post ) {
// save the post for the area to use
$theme->post = $post;
echo $theme->area( 'foo' );
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment