title: Category page in wordpress
body: <p>I am developing a custom wordpress theme ( first time) , I have created below files and they work fine by following <a href="http://thethemefoundry.com/blog/html-wordpress/" rel="nofollow">this</a> tutorial.</p>
  
  <pre><code>index.php
  header.php
  footer.php
  single.php
  sidebar.php
  </code></pre>
  
  <p>Now issue is when I click on a category name at home page it show me 404 error, I tried to create category.php but still same issue. here is my index.php which I used for category.php</p>
  
  <pre><code>&lt;?php get_header(); ?&gt;
  // other html stuff and loop
  &lt;?php if ( have_posts() ) : ?&gt;
  &lt;?php while ( have_posts() ) : the_post(); ?&gt;
  &lt;?php endwhile;?&gt;
  &lt;?php endif; ?&gt;
  &lt;?php get_sidebar(); ?&gt;
  &lt;?php get_footer(); ?&gt;
  </code></pre>
  
  <p>I have two question:</p>
  
  <ol>
  <li>Is it really require to create category.php or can we use index.php for same purpose to show posts from category or tags?</li>
  <li>If it's require to create category.php, Do I also need to create tags.php and how will I get posts for those?</li>
  </ol>