title: Wordpress displays posts of category ID
body: <p>Can't seem to find the right answer for what I thought would be trivial.</p>
  
  <p>I have some categories arranged like this...</p>
  
  <p>Parent Category 1<br>
    - Child Category 1<br>
    - Child Category 2<br>
    - Child Category 3  </p>
  
  <p>...and I have some posts that are in Child Category 2. I want my page to display all posts from the category I am currently in.</p>
  
  <p>This is what I am doing right now:</p>
  
  <pre><code>&lt;?php
  query_posts('cat=2&amp;showposts=10');
      if (have_posts()) : while (have_posts()) : the_post(); ?&gt;      
      &lt;div class="timeline"&gt;
      &lt;h3&gt;&lt;?php the_title(); ?&gt;&lt;/h3&gt;
      &lt;?php the_content();?&gt;
      &lt;?php endwhile; else: ?&gt;
      &lt;?php _e('No Posts Sorry.'); ?&gt;
      &lt;?php endif; ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>As you can see I am having to manually specify the category (cat=2), but instead I want it to automatically detect the category I am already in and display the posts (that way if I'm in a different category it will display those posts).</p>
  
  <p>Any suggestions?</p>
  
  <p>Thanks in advance. (SO Community = Awesome Sauce).</p>