Styling post author or registered user comments on your WordPress 2.7 blog is much easier than it was back in ol’ 2.6. The new
wp_list_comments() template tag (or
comment_class() if you’re doing it the hard way) automatically includes class names like
bypostauthor for easy CSS styling. Slick.
See the official 2.7 theme migration guide for more details.
Ever wonder how to apply special styles to highlight WordPress comments written by the post author or another registered user? Good advice on this point is very rare. Most recommendations are to check against either an email address or a specific user ID. Both of these options are kludges, and both are fragile.
Here’s the right way to do it: Continue reading Styling WordPress author comments