Hi there,
I am getting a parse error with my code and I just can't see why the error is being caused.
Can anyone scan thier fresh eyes over my code?
I am getting - Parse error: parse error, unexpected T_ELSE in /home/public_html/news/wp-content/themes/eo_mrk2/index.php on line 32
<?php get_header(); ?>
<div id="home">
<h2><span class="lowtechHeader">The web site for information</span></h2>
</div>
<?php
if ($cat)
{echo "<h3>You are viewing the " . get_the_category_by_ID($cat) . " Category</h3>";}
?>
<?php if (have_posts()) : ?>
<?php $i = 0; ?>
<?php while (have_posts()) : the_post(); ?>
<?php if ($i < 5) { ?>
<h3 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<p class="posted"> Posted <strong><?php the_time('D F jS, Y') ?>, <?php time_of_day ($post->ID);?></strong> by <?php the_author() ?></p>
<?php the_content('<span class=\"more\">Read full entry</span>'); ?>
<p class="posted"><span class="file-img"><?php _e("Filed:"); ?> <?php the_category(',') ?></span> <span class="comm-img"><?php _e("Speak:"); ?></span> <?php comments_popup_link('Want to reply?', '1 Comment', '% Comments'); ?></p>
<?php else { ?>
<h4>Older Entries:</h4>
<ol id="lwList">
<li id="post-<?php the_ID(); ?>"><?php the_time('D F jS, Y') ?>: <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></li>
</ol>
<?php } ?>
<?php $i++; ?>
<?php endwhile; else: ?>
<h3>Search Results</h3>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
<h4><strong>Looking for more?</strong></h4>
<ul class="lists">
<li><?php get_archives('monthly', '1', 'other', 'View all of ', '\'s entries'); ?></li>
<li>Browse all <?php get_post_count(); ?> entries in the <a href="/archive-index/" title="Things that have passed.">archives</a>.</li>
</ul>
<p><a href="#" onclick="javascript:ScrollWin.scroll('0'); return false;">Back to top</a></p>
</div>
<!-- Sidebar -->
<?php include ('sidebar_front.php'); ?>
<!-- Footer -->
<?php get_footer(); ?>
Thanks
Cheshil