Here is my code
<?php
query_posts('cat=5&posts_per_page=3');
while (have_posts()) : the_post(); ?>
<?php thematic_postheader(); ?>
<div class="entry-content">
<?php the_excerpt(); ?>
</div>
<?php endwhile; else: ?>
<p>Sorry, there are currently no posts to display.</p>
<?php endif; ?>
Really simple, but doesnt work :( here is the error I get
Parse error: syntax error, unexpected T_ELSE in /home/content/91/8496991/html/ccomarketing/wp-content/themes/CCOTheme/homepage.php on line 40
If I take away the everything after the else: it works fine.
I have this code in a php template. What is wrong? I just want it to say sorry no posts if there arent any posts to display...