Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Comments, trackbacks & pings (http://forum.bytesforall.com/forumdisplay.php?f=19)
-   -   Inline Comments - I have code, but the comments aren't displaying (http://forum.bytesforall.com/showthread.php?t=2723)

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.


All times are GMT -6. The time now is 01:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.