Title: category-specific header
Last modified: August 18, 2016

---

# category-specific header

 *  Resolved [morgentau](https://wordpress.org/support/users/morgentau/)
 * (@morgentau)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/category-specific-header/)
 * hi all
 * i have a category on my sidebar called “photography” to which i regularly add
   posts containing photographs. these posts sometime contain a lot of text, and
   i’d like to allow access to a unified gallery of all photographs without any 
   text (this could be an updated “page” instead of a post). i would like to know
   if it’s possible to do the following from within a theme: when the user clicks
   on the “photography” category, have wp display as the first thing on the page,
   just above the last post, a formatted box notifying the user that all the photographs
   included in all the posts can be viewed together, and provide a link.
 * i assume this involves a simple “if” statement involving the category id but 
   i don’t know where it should go (if it’s at all possible without modifying core
   functions).
 * thanks.

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/category-specific-header/#post-644017)
 * You don’t need ever to modify core files or functions to display something on
   a category listing/archive = that’s what we call when you click on a category
   name (like photography).
    This should get you in the right direction: [Category_Templates](http://codex.wordpress.org/Category_Templates)
 *  Thread Starter [morgentau](https://wordpress.org/support/users/morgentau/)
 * (@morgentau)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/category-specific-header/#post-644021)
 * thanks a lot, it did. i didn’t know category templates existed. all the best 
   🙂
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/category-specific-header/#post-644023)
 * Then learn about the rest of the templates, too 🙂
    [Template_Hierarchy](http://codex.wordpress.org/Template_Hierarchy)

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

The topic ‘category-specific header’ is closed to new replies.

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/category-specific-header/#post-644023)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
