title: How do I get posts from category using the slug?
body: <p>I have my own theme and I'd like to display posts on my home page from a specific category.</p>
  
  <p>So far I've achieved it like this:</p>
  
  <pre><code>&lt;?php
      global $post;
      $args = array( 'numberposts' =&gt; 10, 'category' =&gt; 6 );
      $posts = get_posts( $args );
      foreach( $posts as $post ): setup_postdata($post); 
  ?&gt;
  
      &lt;divs with the_title() the_excerpt() etc &gt;&lt;/div&gt;
  
  &lt;?php 
      endforeach; 
  ?&gt;
  </code></pre>
  
  <p>But what if I want to get the category by a its slug? Or is it possible to simply make a category selection box in from within the admin panel?</p>