I am getting the following error when I use this codex:
Parse error: parse error, unexpected T_ENDWHILE in /home2/acousti/public_html/wp/wp-content/themes/myzen/index.php on line 30
This is what I have laid out:
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!– The following tests if the current post is in category 3. –>
<!– If it is not, the code within The Loop is executed as normal. –>
<!– If it is, nothing is done until the next post is processed. –>
<?php if ( !(in_category(’21’) && is_home()) ) { ?>
<div class=”entries”>
<span class=”title”>
<?php the_title(); ?><br>
</span>
<div class=”date”>
<?php the_time(‘F’) ?><br><?php the_time(‘jS’) ?><br><?php the_time(‘Y’) ?>
</div>
<?php the_content(‘Read the rest of this entry »’); ?>
<div align=”center”>
” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>Link | Posted in <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’,”,’|’); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?>
</div>
</div>
<?php endwhile; else: ?>
Sorry, no posts matched your criteria.
<?php endif; ?>
<?php get_footer(); ?>