Title: PHP parse error
Last modified: August 22, 2016

---

# PHP parse error

 *  [marcelboersma](https://wordpress.org/support/users/marcelboersma/)
 * (@marcelboersma)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-parse-error-7/)
 * I can’t figure out what the problem is.
 * PHP Parse error: syntax error, unexpected T_ENDIF in page.php on line 59
 * <?php get_header(); ?>
    <?php if (have_posts()): ?> <?php while (have_posts()){
   the_post(); ?> <article id=”post-<?php the_ID(); ?>” <?php post_class(‘post’);?
   > <?php if($post->ID == 2 || $post->ID == 440) { ?> <div class=”latestNews latestBlock”
   > <?php if (ICL_LANGUAGE_CODE == ‘nl’) { ?> **Nieuws** <?php } else { ?> **Nieuws**
   <? } ?> <?php $temp_query = $wp_query; ?> <?php query_posts(‘category_name=News&
   showposts=5’); while (have_posts()) { the_post(); ?> <div class=”post” id=”post-
   <?php the_ID(); ?>”>
    - 
 *  </div>
    <?php } ?> </div>
 *  <div class=”latestVacs latestBlock”>
    <?php if (ICL_LANGUAGE_CODE == ‘nl’) {?
   > **Vacatures** <?php } else { ?> **Vacatures** <? } ?> <?php query_posts(‘post_type
   =bw_vacatures&showposts=5’); while (have_posts()) { the_post(); ?> <div class
   =”post” id=”post-<?php the_ID(); ?>”>
    - 
 *  </div>
    <?php } ?> </div> <?php wp_reset_query(); ?> <div class=”clearer></div
   > <? } ?>
 *  <header”>
    <h1>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute();?
   >”> <?php the_title(); ?></h1> </header> <section> <?php the_content(‘Read the
   rest of this entry »’); ?> </section> <footer> <?php wp_link_pages(‘before=<div
   class=”post-page-links”>Page:&after=</div>’); ?> <?php edit_post_link(‘Edit this
   page’, ‘<p>’, ‘</p>’); ?> </footer> </article>
 *  <?php } ?>
 *  <?php /* comments_template(); */ ?>
 *  <?php endif; ?>
 * <?php // get_sidebar(); ?>
    <?php get_footer(); ?>

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

 *  [janet4now](https://wordpress.org/support/users/janet4now/)
 * (@janet4now)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-parse-error-7/#post-5216379)
 * Can you paste your entire page.php file here: [http://pastebin.com/](http://pastebin.com/)
 *  Thread Starter [marcelboersma](https://wordpress.org/support/users/marcelboersma/)
 * (@marcelboersma)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-parse-error-7/#post-5216380)
 * Just did: [http://pastebin.com/wF3BuC44](http://pastebin.com/wF3BuC44)
 *  Thread Starter [marcelboersma](https://wordpress.org/support/users/marcelboersma/)
 * (@marcelboersma)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-parse-error-7/#post-5216521)
 * According to pastebin the code has no problems. But it isn’t working en still
   gives the “PHP Parse error: syntax error, unexpected T_ENDIF in page.php on line
   59” error
 * Anybody?

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

The topic ‘PHP parse error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [marcelboersma](https://wordpress.org/support/users/marcelboersma/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/php-parse-error-7/#post-5216521)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
