syntax error, unexpected $end
-
Parse error: syntax error, unexpected $end in C:\xampp\htdocs\spv2\wp-content\themes\viewport\index.php on line 63
Not sure why I’m getting the error, anyways my index.php file is below.
<?php get_header(); ?> <div id="mid" class="index"> <!-- Start slider --> <div class="stripViewer"> <div class="panelContainer"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="panel" id="post-<?php the_ID(); ?>" title="<?php the_title() ?>"> <div class="wrapper"> <?php $image = get_post_meta($post->ID, 'lead_image', true); ?> <img src="<?php echo $image; ?>" alt="" width="940" height="600" /> <div class="post-title"> <?php print_post_title() ?> </div> <div class="entry"> <?php the_excerpt(); ?> </div> </div> </div> <?php endwhile; ?> <div class="panel" id="nav-panel"> <div class="wrapper"> <a href="https://www.flickr.com/photos/shar-fuh-deen/sets/72157621673630837/"><img src="<?php bloginfo('template_directory'); ?>/i/art.jpg" alt="" width="940" height="600" /></a> </div> </div> <?php else : ?> <?php endif; ?> <?php query_posts( 'showposts=4&offset=3' ); if (have_posts()) : $counter = 0; while (have_posts()) : the_post(); $category = get_the_category(); if( $counter % 2 == 0 ) $end = ""; else $end = "last"; ?> </div><!-- .panelContainer --> </div><!--.stripViewer --> </div><!-- .mid --> <div class="stripNavR" id="stripNavR0"><a href="#"><img src="<?php bloginfo('template_directory'); ?>/i/right.png" alt="Right" /></a></div> <div id="comment-home"><!-- Comments --> <?php $withcomments = 1 ?> <?php comments_template(); ?> </div><!-- /Comments --> <?php get_footer(); ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘syntax error, unexpected $end’ is closed to new replies.