Here’s a basic comments loop for WordPress 2.7. You just have to replace your current comment loop with that one to make it work with WordPress 2.7.
<?php
if (have_comments()) : ?>
<h4 id="comments"><?php comments_number('No Comments', 'One Comment', '% Comments' );?></h4>
<ul class="commentlist">
<?php wp_list_comments(); ?>
</ul>
<div class="navigation">
<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
</div>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) :
// If comments are open, but there are no comments.
else : // comments are closed
endif;
endif;
?>
Popularity: 1% [?]
Did you like this? If so, please bookmark it, about it, and subscribe to the blog RSS feed.
We have one response.





on November 8th, 2008 at 11:25 am
[...] Here’sa basic comments loop for WordPress 2.7. You just have to replace your current comment loop with that one to make it work with WordPress 2.7. More [...]