First Forums Template Files Query-based Template Files Reply To: Query-based Template Files

#1527
Crumina team
Keymaster

To use the Template Hierarchy, you basically need to provide special-purpose Template files, which will automatically be used to override index.php. For instance, if your Theme provides a template called category.php and a category is being queried, category.php will be loaded instead of index.php. If category.php is not present, index.php is used as usual.