title: Wordpress posts displaying the same content
body: <p>I have a simple custom page template with a simple loop that displays links to posts of the same category ID=11.
  However, the problem is that although the links are working correctly, all posts are displaying the same content (the content of the first post).  I can't work out why this is.  Any help would be really appreciated, thanks.</p>
  
  <p>Here is the loop on the custom page template</p>
  
  <pre><code>  &lt;?php 
            $args = array('cat' =&gt; 11);
            $category_posts = new WP_Query($args);
  
            if($category_posts-&gt;have_posts()) : 
            while($category_posts-&gt;have_posts()) : 
            $category_posts-&gt;the_post();
          ?&gt;
  
          &lt;a href="&lt;?php the_permalink() ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;
  
          &lt;?php
            endwhile;
            else: 
            // no posts.
            endif;
          ?&gt;
  </code></pre>
  
  <p>And here is what I have on single.php</p>
  
  <pre><code>      &lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;
        &lt;?php the_content(); ?&gt;
  </code></pre>