thekaitlin |
Jul 29, 2009 02:28 PM |
Inline Comments - I have code, but the comments aren't displaying
In a previous theme, I used the following code to get my comments to display below each post
Code:
<?php
$comment_array = array_reverse(get_approved_comments($wp_query->post->ID));
$count = 1;
?>
<?php if ($comment_array) { ?>
<div id="main-page-comment-<?php the_id(); ?>" class="main-page-comment">
<ul class="commentlist">
<?php foreach($comment_array as $comment){ ?>
<li><span class="comment-author"><?php comment_author_link(); ?></span>: <?php comment_text(); ?> </li>
<?php } ?>
</ul>
<?php } else { ?> <!-- if there was no comment in that post,yet -->
<div id="main-page-comment-<?php the_id(); ?>" class="main-page-comment">No comments so far
<?php } ?>
</div>
</div>
<!-- end recent comment--> <div class="clear"></div>
Using this with Atahualpa, however, results in all posts showing no comments for this. Any ideas on how I can/should modify either this code or the theme in order to get the actual comments to show up for the main blog page?
I checked out this post: http://forum.bytesforall.com/showthread.php?t=2423
Which results in the ENTIRE comments template showing up, which is not what I want.
|