Title: Custom category template
Last modified: August 18, 2016

---

# Custom category template

 *  [Darren](https://wordpress.org/support/users/cutout/)
 * (@cutout)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/custom-category-template/)
 * I would like to add a conditional to the ‘archive.php’ template so that it checks
   for ‘if_category’ and sends you to a totally separate template for all category
   pages (something like ‘category-layout.php’).
 * But for things like tags, monthly archives, authors, etc, I would still like 
   to use archive.php.
 * Is this possible?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/custom-category-template/#post-663286)
 * You don’t need that complication…
    Just read the [Category_Templates](http://codex.wordpress.org/Category_Templates)
   related: [Template_Hierarchy](http://codex.wordpress.org/Template_Hierarchy).
 *  Thread Starter [Darren](https://wordpress.org/support/users/cutout/)
 * (@cutout)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/custom-category-template/#post-663299)
 * Ah, so I could use ‘category.php’ and the hierarchy would understand to use it.
   Good to know, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom category template’ is closed to new replies.

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [conditionals](https://wordpress.org/support/topic-tag/conditionals/)

 * 2 replies
 * 2 participants
 * Last reply from: [Darren](https://wordpress.org/support/users/cutout/)
 * Last activity: [18 years, 5 months ago](https://wordpress.org/support/topic/custom-category-template/#post-663299)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
