Title: Conditional Else Statwment does not work
Last modified: August 20, 2016

---

# Conditional Else Statwment does not work

 *  [Papawaya](https://wordpress.org/support/users/papawaya/)
 * (@papawaya)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/conditional-else-statwment-does-not-work/)
 * am trying to add a simple conditional statement in my archive page in order to
   display some categories different from the rest.
 * The if (is (is_cat)) part runs ok but as soon as I choose a category which is
   not part of the if(cat) and therefore relies on the ‘else’ part I get a blank
   white screen …everytime
 * I have stared at the code and looked arounf for a reason as to wha it does ot
   work but I cannot see the error ..anyone else, please??
 * and if anyone knows of a resource which details using conditional tags in loops–
   I am tired of only finding posts on the most basic examples – could they please
   add that too …thanks
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com)]_

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

 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/conditional-else-statwment-does-not-work/#post-2160532)
 * How to post code in WordPress forum topics: [http://codex.wordpress.org/Forum_Welcome#Posting_Code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)
 *  Thread Starter [Papawaya](https://wordpress.org/support/users/papawaya/)
 * (@papawaya)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/conditional-else-statwment-does-not-work/#post-2160540)
 * [@keesiemeijer](https://wordpress.org/support/users/keesiemeijer/) – noted – 
   read – thanks
 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/conditional-else-statwment-does-not-work/#post-2160541)
 * Can you please paste it in a pastebin, because code parsed by the forum’s software
   can alter the code if it is not enclosed in backticks (`).
 *  Thread Starter [Papawaya](https://wordpress.org/support/users/papawaya/)
 * (@papawaya)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/conditional-else-statwment-does-not-work/#post-2160737)
 * The code that I cannot get to work is [http://pastebin.com/0x9h87qp](http://pastebin.com/0x9h87qp)
   
   The IF part works the else part does not ..must be some silly error???

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

The topic ‘Conditional Else Statwment does not work’ is closed to new replies.

## Tags

 * [Conditional_Tags](https://wordpress.org/support/topic-tag/conditional_tags/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Papawaya](https://wordpress.org/support/users/papawaya/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/conditional-else-statwment-does-not-work/#post-2160737)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
