title: Display specific post on a Wordpress page
body: <p>I'm trying to get specific post to display in a single.php page, however for some reason I get all posts displayed. I'm not sure if I am getting post id correctly, but here is how I do it at the moment:</p>
  
  <pre><code>    &lt;?php
      $post_id = (int) $_GET['p'];
      query_posts('p=' . $post_id);
      while(have_posts()) 
      { 
          $this_page = the_post();
          echo the_content();
      } 
      ?&gt;
  </code></pre>
  
  
  
  <p>It should only display post with one id which is stored in $post_id variable, but for some reason it is getting all of them ;/</p>