Title: comment variables
Last modified: August 18, 2016

---

# comment variables

 *  [akella](https://wordpress.org/support/users/akella/)
 * (@akella)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/comment-variables/)
 * How can i get name of somebody inside COMMENTS LOOP.
    Or is there another way
   to make my(authors) comments look different&

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/comment-variables/#post-90570)
 * [http://www.gravatar.com/implement.php#section_2_2](http://www.gravatar.com/implement.php#section_2_2)
   
   or / and [http://wordpress.org/support/10/10300](http://wordpress.org/support/10/10300)
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/comment-variables/#post-90572)
 * and
    [http://www.scriptygoddess.com/archives/2004/06/21/comment-highlighting-based-on-author/](http://www.scriptygoddess.com/archives/2004/06/21/comment-highlighting-based-on-author/)
 *  Moderator [Matt Mullenweg](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/comment-variables/#post-90573)
 * Try putting this inside your comment loop:
    `<?php var_dump($comment); ?>` It’ll
   tell you all the variables that are available in the comment loop for you to 
   use.
 *  Thread Starter [akella](https://wordpress.org/support/users/akella/)
 * (@akella)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/comment-variables/#post-90574)
 * Thanks, i wrote my own function in template-functions-comment.php, smth like 
   this:
    ` function authorclass() { global $comment; $author = apply_filters('comment_author',
   $comment->comment_author); if (!$author) $author = 'Anonymous'; if ($author=="
   akella") : echo "\"class=akella\""; else: echo ""; endif; }

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘comment variables’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [akella](https://wordpress.org/support/users/akella/)
 * Last activity: [21 years, 9 months ago](https://wordpress.org/support/topic/comment-variables/#post-90574)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
