• 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)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP parse error’ is closed to new replies.