Shoot I still need some help. I’m using the index.php from Kubrick. I keep getting this error:
Parse error: syntax error, unexpected T_ELSE in /home1/hippievs/public_html/wp-content/themes/default/index.php on line 60
Here is my main index:
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header(); ?>
<div id=”content” class=”narrowcolumn” role=”main”>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
<small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small>
<div class=”entry”>
<?php the_content(‘Read the rest of this entry »’); ?>
</div>
<p class=”postmetadata”><?php the_tags(‘Tags: ‘, ‘, ‘, ‘
‘); ?> Posted in <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></p>
</div>
<?php endwhile; ?>
<div class=”navigation”>
<div class=”alignleft”><?php next_posts_link(‘« Older Entries’) ?></div>
<div class=”alignright”><?php previous_posts_link(‘Newer Entries »’) ?></div>
</div>
/*inserted new stuff here
*/
<div id=”left”>
<?php $my_query = new WP_Query(‘category_name=tony&showposts=3’);
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID;?>
<?php endwhile; ?>
</div>
<div id=”right”>
<?php $my_query = new WP_Query(‘category_name=hippie&showposts=3’);
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID;?>
<?php endwhile; endif; ?>
</div>
/*end of insertion*/
<?php else : ?>
<h2 class=”center”>Not Found</h2>
<p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
<?php get_search_form(); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
———————
———————
Any ideas? I’m not sure what’s going on. Also I put the
#left,#right {
width:50%;
float:left;
}
in the structure portion of my style.css file. Does it matter where it goes in that list? Thanks a lot anyone!
tony
hippievstony.com