wp_list_comments In WordPress 2.7

The comment functionality enhances quite a bit in WordPress 2.7. Additional to the possiblility to answer comments directly in your backend, there is also a threaded comment support available. Threaded comments enables users to reply on an exist comment, and the discussion will be displayed threaded or nested. Below you can see a screenshot from the default theme:

Screenshot threded comments in WordPress 2.7

If you take a look into comments.php, you will notice some alterations. A short "comment loop" was introduced wp_list_comments() and it manages the complete output of comments. Here is the code:

<?php if ( have_comments() ) : ?>
<ol class="commentlist">
<?php wp_list_comments($comments); ?>
</ol>
<?php else: ?>
// some other code
<?php endif; ?>

This purge the comments.php immense. But it might be a disadvantage for theme authors, since they hardly have the possibility to change the output of comments. And that WordPress developers having their own vision of HTML and CSS is a common knowledge. Right now, we have to wait and see, since it's an early version. It will be interesting how this develops.

3 Comments
  1. Dan Lee says:

    I'm not so sure this is going to be a negative thing, but man am I having a difficult time understanding how to fully style the comments now. Its not like we can just edit a class in CSS now. There's more to it and its a little frustrating right now. Oh well.

  2. Andy Bailey says:

    I really need to see how the comment data is spit out to the template so I can add certain things for my plugins. I hope something more comes out soon!

  3. Alex says:

    Hey Dan and Andy, we surely will provide helpful posts on this subject in the near future. Stay tuned.

1 Ping
  1. Hacks to boost your WordPress 2.7 blog
Leave a Reply
WP Engineer Tags