Title: Template per category
Last modified: August 18, 2016

---

# Template per category

 *  [madcore](https://wordpress.org/support/users/madcore/)
 * (@madcore)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/template-per-category/)
 * I have a doubt. I want to make categories (and child categories) uses separate
   tempates. For example, i have a “Main Page” category with some child categories,
   and a “Blog” and “Art” categories, with also some childs. Looks like that:
 * Main Page
    -News -Updates Blog -Personal -Opinion Art -Original -Fanart
 * Can I make that only “Main Page” and this childs uses index.php, and “Blog” and
   this childs uses, for example, blog.php, and “Art” and this childs uses art.php?

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/template-per-category/#post-216878)
 * You can certainly make many page templates if that’s what you mean:
    [http://codex.wordpress.org/Pages](http://codex.wordpress.org/Pages)
 *  [Michael Bishop](https://wordpress.org/support/users/miklb/)
 * (@miklb)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/template-per-category/#post-216881)
 * [http://codex.wordpress.org/Category_Templates](http://codex.wordpress.org/Category_Templates)
   
   I think this is more what the OP wants. You’ll just create a template category-
   2.php for Blog, category-3.php for art, etc Just make sure the cat number matches
   the cat number in your DB.
 *  Thread Starter [madcore](https://wordpress.org/support/users/madcore/)
 * (@madcore)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/template-per-category/#post-216912)
 * Thanks, that works perfectly, but the child categories donÂ´t use the template
   for the main. I thought I need to make copies of the main category template an
   call them with the ID of the children.
 *  [Lorelle](https://wordpress.org/support/users/lorelle/)
 * (@lorelle)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/template-per-category/#post-216920)
 * You can use any ID number for any categories that you want.
    It doesn’t matter.
   I use them on [my site](http://www.cameraontheroad.com/index.php?cat=8) on about
   30 of categories, parents and children. Doesn’t matter.
 *  Thread Starter [madcore](https://wordpress.org/support/users/madcore/)
 * (@madcore)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/template-per-category/#post-216934)
 * IÂ´m going to do that, one category file per one ID. More customize capacity.

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

The topic ‘Template per category’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 4 participants
 * Last reply from: [madcore](https://wordpress.org/support/users/madcore/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/template-per-category/#post-216934)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
