Skip to content

Instantly share code, notes, and snippets.

@pelagisk
Created August 8, 2012 11:55
Show Gist options
  • Select an option

  • Save pelagisk/3294510 to your computer and use it in GitHub Desktop.

Select an option

Save pelagisk/3294510 to your computer and use it in GitHub Desktop.
Exempel 2 The Loop
<?php
$banners = get_posts('post_status=publish&orderby=post_date&numberposts=10');
foreach( $banners as $idx => $post ) {
setup_postdata($post);
the_title();
the_content();
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment