• Hello all. I am using theme grey white black.

    So all of a sudden today I was met with the error message

    Parse error: syntax error, unexpected $end in /home/burrito/public_html/wp-content/themes/lightshow-child-2/page-forum.php on line 23

    when I tried to view my page. Here is my .php custom page template. I can’t find anything wrong. Any suggestions?

    <?php
    /*
    Template Name: Forum Page
    */
    ?>
    <?php get_header(); ?>
    <div class="community">
    	<?php if (have_posts()) while (have_posts()) : the_post(); ?>
    		<div class="box full-post">
    
    			<p class="categories"> <?php the_category(" "); ?></p>
    
    			<?php wp_link_pages(array('before' => '<p class="pages"><strong>'.__('Pages', 'gray_white_black').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    		</div>
    		<?php if ( comments_open() ) : ?>
    
    		<?php endif; ?>
    		<p class="pages"><?php wp_link_pages(); ?></p>
    </div>
    
    <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
  • You are missing an endwhile statement like this:

    <?php endif; ?>
    <p class="pages"><?php wp_link_pages(); ?></p>
    	<?php endwhile; ?>
    </div>
Viewing 1 replies (of 1 total)
  • The topic ‘Parse error: syntax error, unexpected $end – HELP’ is closed to new replies.