Syntax Error- “unexpected T_ENDWHILE” on template page
-
I have three nested template pages under a singe page called features on the following blog:
When you click on two of the three nested pages, the tab functionality still works at the top and can take you back to the main page. However, when you click on “Seen on Ebay”, and then try to click on the features tab again, you get this error:
Parse error: syntax error, unexpected T_ENDWHILE in /home/cyclezin/public_html/wp-content/themes/typographywp/page.php on line 82
Why would it work on 2 out of the three pages? The page in question is here. Here is the code:
<?php get_header(); ?> <div id="posts"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <!--<ul class="pinfo">--> <!--<li class="lileft"><span>--> <!-- <?php the_time('j') ?>--> <!-- --> <!-- <em>--> <!-- <?php the_time('M') ?>--> <!-- </em></span></li>--> <!--<div id="xsnazzy"> <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b> <div class="xboxcontent"> <ul class="pinfo"> <li class="lileft"><span> <?php the_time('j') ?> <em> <?php the_time('M') ?> </em></span> </li> <li class="liright"> <div><div><h1><a title='Permanent Link to <?php the_title(); ?>' href='<?php the_permalink() ?>' rel='bookmark'><?php the_title(); ?></a></h1></div></div> </li> </ul> </div> <b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"> </b></b> </div> --> <li class="liright"> <div> <div> <h1><a title='Permanent Link to <?php the_title(); ?>' href='<?php the_permalink() ?>' rel='bookmark'> <?php the_title(); ?> </a></h1> </div> </div> </li> </ul> <div class="postcontent"> <!--/*added this*/ <?php the_content('<span>Read the rest of this entry...</span>'); ?> <span class="postcom"><?php comments_popup_link('contribute', 'one comment', '% comment'); ?></span> </div> </div> <?php endwhile; ?> <div id="navigation"> <?php posts_nav_link('','<span class="prev">Newer Entries »</span>','') ?> <?php posts_nav_link('','','<span class="next">« Older Entries</span>') ?> </div> <?php else : ?> /*end add*/--> <?php the_content('<span>Read the rest of this entry...</span>'); ?> <font size=1><?php edit_post_link('edit this post', '', ''); ?></font> <div id="singleinfo"> <ul> <li class="tags">Tagged as: <?php the_tags('',', ','');?> </li> <li class="categorie">Created by the genius mind of <?php the_author() ?> in: <?php the_category(', '); ?> </li> </ul> </div> </div> <?php endwhile; ?> <?php else : ?> <div class="post"> <ul class="pinfo"> <li class="lileft"><span> 44 <em> day </em></span></li> <li class="liright"> <div> <div> <h1>Hmm! To bad this is a 404 error</h1> </div> </div> </li> </ul> <div class="postcontent"> <?php _e('Sorry, no posts matched your criteria.'); ?> </div> </div> <?php endif; ?> <div id="comments"> <?php comments_template(); ?> </div> </div> <?php include('rsidebar.php'); ?> <?php get_footer(); ?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Syntax Error- “unexpected T_ENDWHILE” on template page’ is closed to new replies.