mardi 24 février 2015

Why am I getting syntax error, unexpected 'endwhile' (T_ENDWHILE)?


When trying to preview a page I've created, I get this error:



Parse error: syntax error, unexpected 'endwhile' (T_ENDWHILE) in /home/velocitydancecenter/http://ift.tt/1AqbrUO on line 35



My site: http://ift.tt/1LACQoX



<?php get_header(); ?>

<?php if (have_posts()): ?>
<?php while (have_posts()): the_post(); ?>

<div class="entry">
<div <?php post_class('single clear'); ?> id="post_<?php the_ID(); ?>">
<div class="post-meta">
<h1><?php the_title(); ?></h1>
<?php printf(__('<span class="post-author" style="color: #FF9147"><a href="%s" title="Posts by %s">%s</a></span><br><span class="post-date" style="color:black">%s</span>', 'sight'),
get_author_posts_url(get_the_author_meta('ID')),
get_the_author(),
get_the_author(),
get_the_time('M j, Y'),
get_the_time()
); ?>

<?php if (comments_open()): ?>
<a href="#comments" class="post-comms"><?php comments_number(__('No Comments', 'sight'), __('1 Comment', 'sight'), __('% Comments', 'sight'), '', __('Comments Closed', 'sight') ); ?></a>
<?php endif; ?>
</div>
<div class="post-content"><?php the_content(); ?></div>
<div class="post-footer"><?php the_tags('<strong>'.__('Tags:', 'sight').' </strong>', ', '); ?></div>
</div>
</div>

<?php endwhile; ?>
<?php endif; ?>


Thank you!





Aucun commentaire:

Enregistrer un commentaire