WordPress Template Hierarchy for Category Pages

WordPress has a powerful templating system. You can create a WordPress theme by using different templates for different sections of your website. WordPress looks for a template in a pre-defined hierarchical order when displaying any page. To display a category page, it looks for templates in this order. category-slug.php → category-id.php → category.php → archive.php