Title: is_category question.
Last modified: August 21, 2016

---

# is_category question.

 *  Resolved [Jordan](https://wordpress.org/support/users/theoriginaljordan/)
 * (@theoriginaljordan)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/is_category-question-1/)
 * Hello All,
 * I am trying to make the logo in my header change
    if the category is set to a
   specific category.
 * I have three different logos I need to cycle through.
    One appears if `is_category('
   one')` Two appears if `is_category('two')` The third I want to show up neither
   of these are true.
 * I apologize for my ignorance. I am new to the php/wordpress world.
 * Thanks in advance

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

 *  Thread Starter [Jordan](https://wordpress.org/support/users/theoriginaljordan/)
 * (@theoriginaljordan)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/is_category-question-1/#post-4189001)
 * This will probably make it easier to help me out.
 *     ```
       <?php if ( is_category( 'athome' ) ) { ?>
       <img src = "http://images/logo1.png" />
       <?php } else ( is_category( 'whirlweddings' ) ) { ?>
       <img src = "http://images/logo2.png" />
       <?php } else () ) { ?>
       <img src = "http://images/logo3.png" />
       <?php } ?>
       ```
   
 *  [Harris O.](https://wordpress.org/support/users/hfort/)
 * (@hfort)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/is_category-question-1/#post-4189003)
 * Try this:
 *     ```
       <?php if ( is_category( 'athome' ) ) { ?>
       <img src = "http://images/logo1.png" />
       <?php }
       elseif ( is_category( 'whirlweddings' ) ) { ?>
       <img src = "http://images/logo2.png" />
       <?php }
       else { ?> <img src = "http://images/logo3.png" />
       <?php } ?>
       ```
   
 *  Thread Starter [Jordan](https://wordpress.org/support/users/theoriginaljordan/)
 * (@theoriginaljordan)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/is_category-question-1/#post-4189004)
 * I actually just figured it out. It due to my if else statement.
 * The proper order was
    if, elseif, else
 *  Thread Starter [Jordan](https://wordpress.org/support/users/theoriginaljordan/)
 * (@theoriginaljordan)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/is_category-question-1/#post-4189005)
 * Thanks anyway Harrison, sorry to have wasted you’re time.

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

The topic ‘is_category question.’ is closed to new replies.

## Tags

 * [change](https://wordpress.org/support/topic-tag/change/)
 * [different](https://wordpress.org/support/topic-tag/different/)
 * [is_category](https://wordpress.org/support/topic-tag/is_category/)
 * [logo](https://wordpress.org/support/topic-tag/logo/)
 * [pages](https://wordpress.org/support/topic-tag/pages/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Jordan](https://wordpress.org/support/users/theoriginaljordan/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/is_category-question-1/#post-4189005)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
