Title: Code Error
Last modified: August 19, 2016

---

# Code Error

 *  Resolved [jdunneirl](https://wordpress.org/support/users/jdunneirl/)
 * (@jdunneirl)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/code-error-8/)
 * Can anyone tell me why this errors?
 *  ‘ <?php if ($is_page(‘contact’)): ?>
    john <?php else: ?> <?php if(have_posts()):?
   > <?php while(have_posts()) : the_post() ?> <?php the_content(); ?> <?php endwhile;
   else : ?> no post <?php endif; ?> <?php endif; ?> ‘

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

 *  [Steven Jones](https://wordpress.org/support/users/rainemaida/)
 * (@rainemaida)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/code-error-8/#post-1965364)
 * The $ in the is_page()? It’s a function not a variable.
 *  Thread Starter [jdunneirl](https://wordpress.org/support/users/jdunneirl/)
 * (@jdunneirl)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/code-error-8/#post-1965384)
 * Thanks Steven you got it in one 😀

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

The topic ‘Code Error’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [jdunneirl](https://wordpress.org/support/users/jdunneirl/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/code-error-8/#post-1965384)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
