Calling comments_template() in the index.php
-
Below is what I have for my index.php file but for some reason it won’t pull the comments template. Any ideas?
<?php get_header(); ?><!--Begin Content-->
<div id="current_photo">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="photo" id="post-<?php the_ID(); ?>">
<?php the_excerpt(); ?></div><!--Close DIV.photo-->
</div><!--Close DIV#current_photo-->
<div id="ajax_info_comments">
<div id="info_comment_drawer" style="display:none;"><div id="info">
<div class="post_meta_data">
<p class="posted_date">Posted on <?php the_date(); ?>
<p class="posted_categories">Filed Under | <strong><?php the_category('| '); ?></strong></div><!--Close DIV.post_meta_data-->
<div class="description">
<?php the_content(); ?>
</div></div><!--Close DIV#info-->
<div id="comments">
<?php comments_template(); ?>
</div></div><!--Close DIV#info_comment_drawer-->
<div class="pull_tab">
<a href="#bottom">info+comments</a>
</div><!--Close DIV.pull_tab--></div><!--Close DIV#ajax_info_comments-->
<?php endwhile; ?>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.
<?php include (TEMPLATEPATH . "/searchform.php"); ?><?php endif; ?>
<?php get_footer(); ?>
The topic ‘Calling comments_template() in the index.php’ is closed to new replies.