title: Loop WordPress blog posts
body: <pre><code>&lt;?php get_header(); ?&gt;
  &lt;div class="page-wrap group"&gt;
  
  &lt;div class="grid"&gt;
  
    &lt;?php query_posts('showposts=6'); ?&gt;
  
      &lt;?php if (have_posts()): ?&gt;
  
    &lt;section class="blog-posts col-2-3 grid-pad"&gt;
  
      &lt;?php while (have_posts()) : the_post(); ?&gt;
  
        &lt;article class="module" id="post-&lt;?php the_ID(); ?&gt;"&gt;
  
          &lt;h2&gt; &lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark"&gt;&lt;?php the_title(); ?&gt;&lt;/a &lt;/h2&gt;
          &lt;p&gt;&lt;time datetime="2001-05-15 19:00"&gt;&lt;?php echo date('l jS F Y')?&gt;&lt;/p&gt;
  
          &lt;?php the_excerpt(); ?&gt;
  
  
        &lt;/article&gt;
  
        &lt;?php endwhile; ?&gt;
  
    &lt;/section&gt;
  </code></pre>
  
  
  
  <p><p></p></p>
  
  
  
    
       
     
    
  
  <p>This is my code for the index.php, what I want to do is have lets say 3 blog posts in <code>&lt;section class="blog-posts col-2-3 grid-pad"&gt;</code> then another 3 posts in <code>&lt;section class="blog-posts col-2-3 grid-pad"&gt;</code></p>
  
  <p>So how do you loop the posts so you can have them spread across the page? Right now I can only get it so it displays them all in the first </p>