Hello,
I am currently trying to use a theme I tweaked to my liking, but whe I uploaded it to Wordpress and previewed it I saw the error message Parse error: syntax error, unexpected T_ELSE in /home/content/27/5182527/html/wp-content/themes/KidsStyle/index.php on line 23.
Here is the index.php code.
<?php get_header(); ?>
<!-- container start -->
<div id="container">
<?php get_sidebar(); ?>
<!-- content start -->
<div id="content">
<?php $postcnt = 1; ?>
<?php while(have_posts()) : the_post(); ?>
<?php if(have_posts()) : ?>
<div class="post">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="postmetadata">Posted in <?php the_category(', ') ?></div>
<div class="entry"><?php the_content('[...]'); ?></div>
<div class="endline"></div>
<?php the_tags('<p class="tags"><strong>Tags:</strong> ', ', ', '</p>'); ?>
<div class="bookmark"><?php include(TEMPLATEPATH . '/bookmark.php'); ?></div>
<div class="read_comments"><a href="<?php comments_link(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/read_comments.jpg" width="187" height="23" alt="read comments" /></a></div>
<div class="endline"></div>
</div>
<?php if ($postcnt == 1) : ?>
<?php include(TEMPLATEPATH . '/adsense2.php'); ?>
<?php endif; $postcnt++; ?>
<?php endwhile; ?>
<?php wp_pagenavi(); ?>
<?php else : ?>
<div class="notfound"><p>Content Not Found!</p><p>Please try again.</p></div>
<?php endif; ?>
</div>
<!-- content end -->
<div class="endline"></div>
</div>
<!-- container end -->
<?php get_footer(); ?>
Any ideas on what could be wrong?
Thank you in advance!
:)