View Single Post
Old 09-22-2017, 06:16 AM  
catmaster
Registered User
 
Industry Role:
Join Date: May 2011
Posts: 2

WordPress will search for specific files in your custom WordPress Theme directory to create your category archive pages.
The hierarchy is fairly simple. For instance, suppose the slug of the Category is news and the Category ID is 6. The Template Hierarchy specifies that WordPress will use the first Template file it finds in your Custom Theme's directory from the following list:
  1. category-slug.php
  2. category-ID.php
  3. category.php
  4. archive.php
  5. index.php

That is, if you do not have a category-slug.php (lets say category-news.php), WordPress will check for a category-ID.php (like category-6.php), and so on in your custom Wordpress Theme Directory.

If you need some assistance for any kind of custom modifications please let me know by PM
catmaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote