Title: Conditional not working
Last modified: August 20, 2016

---

# Conditional not working

 *  [frescova](https://wordpress.org/support/users/frescova/)
 * (@frescova)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/conditional-not-working-1/)
 * I have tried this with is_home and is_front_page and no matter what I always 
   get the same result, the code from the “else” clause displays no matter where
   I am on my site.
 * Does anyone have an idea what my be happening?
 * I have NOT set up my reading settings to point to another page.
 *     ```
       <?php if ( is_front_page()  ) { ?>
       THIS IS THE HOME PAGE
       <?php } else { ?>
       THIS IS NOT THE HOME PAGE
        <?php } ?>
       ```
   

Viewing 1 replies (of 1 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/conditional-not-working-1/#post-2893163)
 * where is that code located, and could there be a custom query somewhere before
   in the same template?

Viewing 1 replies (of 1 total)

The topic ‘Conditional not working’ is closed to new replies.

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [is_front_page](https://wordpress.org/support/topic-tag/is_front_page/)
 * [is_home](https://wordpress.org/support/topic-tag/is_home/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/conditional-not-working-1/#post-2893163)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
