Title: if statements
Last modified: August 18, 2016

---

# if statements

 *  [Shelby DeNike](https://wordpress.org/support/users/sdenike/)
 * (@sdenike)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/if-statements/)
 * I am writing a pretty complex theme for a business and there will a lot of IF
   statements in the them, eg if this categoriy or if this page etc…. I know that
   pages can be done like so.
    <?php if ( is_home() ) { ?> do this here… <?php }?
   > but what about certain categories? Also do these statements work in the page.
   php and such? Thanks in advance

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

 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/if-statements/#post-411221)
 * I think you’re going to LOVE this page: [http://codex.wordpress.org/Conditional_Tags](http://codex.wordpress.org/Conditional_Tags)
 *  Thread Starter [Shelby DeNike](https://wordpress.org/support/users/sdenike/)
 * (@sdenike)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/if-statements/#post-411224)
 * Thank you that is EXACTLY what I was looking for… I tried to search first but
   didn’t know the exact term = no results….. Thanks!

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

The topic ‘if statements’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Shelby DeNike](https://wordpress.org/support/users/sdenike/)
 * Last activity: [19 years, 11 months ago](https://wordpress.org/support/topic/if-statements/#post-411224)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
