I’ve spent a day or so trying to figure out how to get Comments to display from my template, updated from 1.2 to 1.5 and, despite the excellent hints here and elsewhere in the forums, I still cannot seem to get comments to display. The link to comments shows up on the main blog page, but when you click on that, although you get to the single post on a page, the comments are not visisble.
I am not sure which file I should be editing for this. I do not actually have a SINGLE.PHP file and that does not seem to affect displaying of single posts, which is fine.
So how do I edit INDEX.PHP to display comments when someone clicks on the comments link?
The loop part of my INDEX.PHP looks like this:
<div class="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_date('','<h2>','</h2>'); ?>
<div class="headline">
<div class="title">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a>
</div >
<div class="meta"><?php _e("Filed under:"); ?> <?php the_category() ?> — by <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?>
</div>
</div >
<?php the_content('Read the rest of this entry »'); ?>
<div class="feedback">
<?php wp_link_pages(); ?>
<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
</div>
<?php endwhile; ?>
<!--
<?php trackback_rdf(); ?>
-->
<div class="navigation">
<div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div>
<div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
Which is basically copied from the default theme and modified a little to suit my old template.
Thanks