Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Comments, trackbacks & pings »

Inline Comments - I have code, but the comments aren't displaying


  #1  
Old Jul 29, 2009, 03:28 PM
thekaitlin
 
1 posts · Jul 2009
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.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying comments and comment form below each post on multi post pages, in 3.4.x Flynn Comments, trackbacks & pings 12 May 28, 2011 08:27 PM
Comment colors aren't right... Kiyobi Comments, trackbacks & pings 1 Apr 6, 2009 11:03 AM
On comments page for post Leave a Reply and comments are white daisy24 Comments, trackbacks & pings 4 Feb 19, 2009 07:40 AM
Staggering Admin Comments and Vistors comments animalcommunicator Comments, trackbacks & pings 4 Feb 17, 2009 07:55 AM
Inline Comments Siekierski Comments, trackbacks & pings 1 Jan 5, 2009 01:52 PM


All times are GMT -6. The time now is 03:42 PM.


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