Title: Multiple Conditions?
Last modified: August 18, 2016

---

# Multiple Conditions?

 *  Resolved [polkadotsarecool](https://wordpress.org/support/users/polkadotsarecool/)
 * (@polkadotsarecool)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/multiple-conditions/)
 * So, I was reading the codex, and saw this nifty bit about conditions. Now, I 
   want to know if it’s possible to have more than one condition specified. As in,
   if this is blah OR deedah, then do this, all on one line. If I want two different
   pages to do the same thing, but don’t want to write two separate if statements,
   that sort of thing.
 * I saw a thread similar, and everyone seemed to suggest making a new page template.
   I don’t really want to do that.
 * Is this possible though? If not, it’s not too big a deal I guess.

Viewing 1 replies (of 1 total)

 *  [Naomi Niles](https://wordpress.org/support/users/nomi/)
 * (@nomi)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/multiple-conditions/#post-556544)
 * I have multiple pages specified like this:
 *     ```
       <?php if (is_page(page1) OR is_page('page2')) { ?>
   
       <p>conditional stuff here.</p>
   
       <?php
       }
       ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Multiple Conditions?’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 1 reply
 * 2 participants
 * Last reply from: [Naomi Niles](https://wordpress.org/support/users/nomi/)
 * Last activity: [19 years, 1 month ago](https://wordpress.org/support/topic/multiple-conditions/#post-556544)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
