, LLC.

How to Highlight Author Comments in  WordPress

To highlight comments posted by the author in WordPress, add the following code to the comments.php file in your WordPress template:

 // Author Comments
if (1 == $comment->user_id) { ?>
  • For reference, the full comment structure I am using for is:

      user_id) { ?>
    1. / /

    Now simply style #commentlist li.authcomment and your done.

    Meet the Author

    Kevin Leary, WordPress Consultant

    I'm a freelance web developer and WordPress consultant in Boston, MA with 16 years of experience building websites and applications. View a portfolio of my work or request an estimate for your next project.