Title: Problem Using PHP Code for Images Specific to Post Categories
Last modified: August 19, 2016

---

# Problem Using PHP Code for Images Specific to Post Categories

 *  [Vanessa](https://wordpress.org/support/users/designtospec/)
 * (@designtospec)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/problem-using-php-code-for-images-specific-to-post-categories/)
 * I’m working on a blog that’s set up to show different image on at the top of 
   each screen depending upon the category. When the blog was upgraded to 3.0.1 
   we’re now getting an error page instead of the blog or the category. When I take
   out the code on the category.php file, the blog works again. I’ve disconnected
   plugins and reconnected… no difference. I’ve taken down the theme and turned 
   on the Default theme. Also no difference. The PHP I’m using begins `<?php if (
   is_category('category name')) { ?>` which is the recommended code. It worked 
   fine until the upgrade. Any ideas? Help needed!

The topic ‘Problem Using PHP Code for Images Specific to Post Categories’ is closed
to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Vanessa](https://wordpress.org/support/users/designtospec/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/problem-using-php-code-for-images-specific-to-post-categories/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
