WordPress category template page not found

If you have been developing themes on WordPress, one thing which you face in the early stages is receiving 404 page not found on the category page.

WordPress searches for the following files in your theme directory and loads the first theme file found:

  1. category-slug.php
  2. category-ID.php
  3. category.php
  4. archive.php
  5. index.php

If you have one of these files, and your getting 404 Page not on your category link follow these steps:

  1. Make a backup of your .htaccess
  2. Delete it
  3. Go to Dashboard -> Settings -> Permalinks  (set it to default oir postname)
  4. Click on Save
  5. Paste .htaccess

Now, your category page url should work