Title: single-{custom}.php help
Last modified: August 20, 2016

---

# single-{custom}.php help

 *  [empulse](https://wordpress.org/support/users/empulse/)
 * (@empulse)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/single-customphp-help/)
 * I’m curious if there is an easy way to use this function, or maybe another function
   that will work similarly. I read the codex, but goodness it seems complicated
   to impliment.
 * Basically I have 4 catergories. We’ll call them:
 * En
    Ma Mg Gr
 * Each post category needs to have the corresponding header assigned to the single.
   php. Initially I thought I could make a template for posts, but that doesn’t 
   seem to be the case…
 * How can I assign a different header for each post category? Is the best way to
   do this to use the custom types feature?
 * Thanks for any assistance you can give me

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

 *  [Digital Raindrops](https://wordpress.org/support/users/adeptris/)
 * (@adeptris)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/single-customphp-help/#post-2269471)
 * single.php is for a single post, that post can relate to many categories, like
   a post in ‘sports, national, tennis’
 * If this is in single.php you will have to find the categories and look for a 
   header, or do you mean the category list, category.php or index.php if there 
   is no category.php.
 * When you say header do you mean a different header.php file or a different header
   image?
 * Which theme are you using, twenty ten and twenty eleven allow you to assign or
   upload a feature image as a header?
 * Regards
 * David
 *  Thread Starter [empulse](https://wordpress.org/support/users/empulse/)
 * (@empulse)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/single-customphp-help/#post-2269472)
 * David, thanks for your quick response!
 * Shortly after I posted this I found the info I was seeking. Here is a link for
   anyone that may come through here looking for a solution later on:
 * [Single Post Templates by Category](http://www.nathanrice.net/blog/wordpress-single-post-templates/)
 * Regards,
    Brandon

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

The topic ‘single-{custom}.php help’ is closed to new replies.

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [custom posts](https://wordpress.org/support/topic-tag/custom-posts/)
 * [single.php](https://wordpress.org/support/topic-tag/single-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [empulse](https://wordpress.org/support/users/empulse/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/single-customphp-help/#post-2269472)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
