Jump to content
Killersites Forums

wordpress issue while installing new theame

Recommended Posts

hi all,


while i am activating a new theame this error message is coming can anyone help me fixing the issue


Parse error: syntax error, unexpected T_ELSE in C:\wamp\www\wordpress\wp-content\themes\TreeHouse\TreeHouse\index.php on line 46


below is the php code of index.php






<?php get_header(); ?>



<?php if (have_posts()) : ?>


<?php $i=0; while (have_posts()) : the_post(); $i++; ?>


<?php the_title(); ?>

Posted by <?php the_author() ?> | Posted in <?php the_category(', ') ?> | Posted on <?php the_time('d-m-Y') ?>

<?php comments_number('0', '1', '%'); ?>


<?php if($i==1 || $i==2) : ?>

<?php theme_google_468_ads_show(); ?>

<? endif; ?>

<?php the_content('',FALSE,''); ?>



<?php endwhile; ?>


<?php theme_google_468_ads_show(); ?>


<?php if(!function_exists('wp_pagenavi')) : ?>

<?php next_posts_link('Previous') ?>

<?php previous_posts_link('Next') ?>

<?php else : wp_pagenavi(); endif; ?>


<?php else : ?>


Not Found

Sorry, but you are looking for something that isn't here.

<?php include (TEMPLATEPATH . "/searchform.php"); ?>


<?php endif; ?>



<?php get_footer(); ?>





Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...