Title: Get comment_author userlevel?
Last modified: August 19, 2016

---

# Get comment_author userlevel?

 *  Resolved [vmpr](https://wordpress.org/support/users/vmpr/)
 * (@vmpr)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/get-comment_author-userlevel/)
 * Hi guys,
 * just a simple question: It is possible to get the info if the comment_author 
   has a userlevel >= 1?
 * I want to add a small Icon to all editors, contributors, etc that shows they’re
   in the team.

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

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/get-comment_author-userlevel/#post-679395)
 * Insert this in the comments loop of your comments template:
 *     ```
       <?php
       $comment_user = get_userdata($comment->user_id);
       if ( $comment_user->user_level >= 1 ) :
       ?>
   
       ~ Display this for comments from Contribs and higher ~
   
       <?php endif; ?>
       ```
   
 *  Thread Starter [vmpr](https://wordpress.org/support/users/vmpr/)
 * (@vmpr)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/get-comment_author-userlevel/#post-679664)
 * Thanks a lot!

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

The topic ‘Get comment_author userlevel?’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [vmpr](https://wordpress.org/support/users/vmpr/)
 * Last activity: [18 years, 5 months ago](https://wordpress.org/support/topic/get-comment_author-userlevel/#post-679664)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
