title: query single post with wp_query
body: <p>I retrieved the latest posts in front page with WP_query loop, coz i figured out that's the best solution. but i want to display the post was clicked in front page.</p>
  
  <p>what's the best method for single post query?</p>
  
  <p>I used wp_query again in single.php(is there any better idea?)</p>
  
  <pre><code>$args =  array('name' =&gt; $the_slug,
      'post_type' =&gt; 'post',
      'post_status' =&gt; 'publish',
      'posts_per_page' =&gt; 1);
  $the_query = new WP_Query( $args );
  &lt;?php while ( $the_query-&gt;have_posts() ) :?&gt;
  
      &lt;?php $the_query-&gt;the_post(); ?&gt;
  &lt;p&gt;&lt;?php $content = get_the_content('Read more');
  print $content; ?&gt;&lt;/p&gt;
  &lt;?php endwhile; ?&gt;&lt;!-- end of the loop --&gt;
  &lt;!-- put pagination functions here --&gt;
      &lt;?php wp_reset_postdata(); ?&gt;
  &lt;?php else:  ?&gt;
  
  &lt;p&gt;&lt;?php _e( 'Sorry, no posts matched your criteria.' ); ?&gt;&lt;/p&gt;
  
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>the problem is it always retrieved the latest post, even i click on any post id. how can i fix that problem?</p>