Title: multiple is_page()
Last modified: August 20, 2016

---

# multiple is_page()

 *  [baszer](https://wordpress.org/support/users/baszer/)
 * (@baszer)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/multiple-is_page/)
 * hello,
 * is it allowed to have 2 (or more) is_page() on your page?
 * i have
 *     ```
       <?php if ( is_page(92) ) {
       echo 'page 92';
           } elseif ( is_page(93) ) {
       echo 'page 93';
       } else { echo 'else';} ?>
       ```
   
 * what works ok, but when I add another is_page(92) on another spot, it only gives
   the else. So is it not allowed to have more is_page() ?

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/multiple-is_page/#post-2846420)
 * You can have as many `is_page()` conditionals as you need. My guess is that its
   their placement or your logic that’s causing the problem.
 *  Thread Starter [baszer](https://wordpress.org/support/users/baszer/)
 * (@baszer)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/multiple-is_page/#post-2846520)
 * thank you for your answer, I think you are right, I now did it some other way.

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

The topic ‘multiple is_page()’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [baszer](https://wordpress.org/support/users/baszer/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/multiple-is_page/#post-2846520)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
