Skip to content

Instantly share code, notes, and snippets.

@billrobbins
Created March 5, 2012 21:52
Show Gist options
  • Select an option

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

Select an option

Save billrobbins/1981380 to your computer and use it in GitHub Desktop.
All full blog to Progress home page
<div class="content shadow clearfix">
<div class="main-content">
<?php $recent = new WP_Query("showposts=10"); while($recent->have_posts()) : $recent->the_post();?>
<article id="<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
</article>
<?php endwhile; wp_reset_query(); ?>
<p class="paging-next left">
<a href="http://yoursite.com/page/2/">More From Our Blog</a>
</p>
</div>
<aside class="sidebar">
<?php dynamic_sidebar( 'sidebar-home' ); ?>
</aside>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment