Skip to content

Instantly share code, notes, and snippets.

@billrobbins
Created March 5, 2012 16:56
Show Gist options
  • Select an option

  • Save billrobbins/1979263 to your computer and use it in GitHub Desktop.

Select an option

Save billrobbins/1979263 to your computer and use it in GitHub Desktop.
Add Posts To Progress Home
<div class="content shadow clearfix">
<div class="full">
<?php $recent = new WP_Query("showposts=3"); while($recent->have_posts()) : $recent->the_post();?>
<article id="<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="title"><?php the_title(); ?></h2>
<?php the_excerpt(); ?>
</article>
<?php endwhile; wp_reset_query(); ?>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment