Title: shadowarts's Replies | WordPress.org

---

# shadowarts

  [  ](https://wordpress.org/support/users/shadowarts/)

 *   [Profile](https://wordpress.org/support/users/shadowarts/)
 *   [Topics Started](https://wordpress.org/support/users/shadowarts/topics/)
 *   [Replies Created](https://wordpress.org/support/users/shadowarts/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/shadowarts/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/shadowarts/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/shadowarts/engagements/)
 *   [Favorites](https://wordpress.org/support/users/shadowarts/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to display comment author’s role](https://wordpress.org/support/topic/how-to-display-comment-authors-role/)
 *  Thread Starter [shadowarts](https://wordpress.org/support/users/shadowarts/)
 * (@shadowarts)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/how-to-display-comment-authors-role/#post-944603)
 *     ```
       <?php
       function custom_comment($comment, $args, $depth) {
              $GLOBALS['comment'] = $comment; ?>
       <li <?php comment_class(); ?> id="comment-<?php comment_ID( ); ?>">
              <div class="avatar_cont"><?php if ($args['avatar_size'] != 0) echo get_avatar( $comment, $args['avatar_size'] ); ?></div>
       Comment by <em><?php comment_author_link() ?></em>:
       <?php if ($comment->comment_approved == '0') : ?>
       <em>Your comment is awaiting moderation.</em>
       <?php endif; ?>
       <br />
       <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title="">
       <?php comment_date('l, F jS Y') ?> at <?php comment_time() ?></a>&nbsp;|&nbsp;<?php edit_comment_link('Edit','',''); ?></small>
       	<?php comment_text() ?>
   
       <?php echo comment_reply_link(array('before' => '<div class="reply">', 'after' => '</div>', 'reply_text' => 'Reply to this comment', 'depth' => $depth, 'max_depth' => $args['max_depth'] ));  ?>
   
       <?php } ?>
       ```
   
 * I believe there’s no code to return the value of the role.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to display comment author’s role](https://wordpress.org/support/topic/how-to-display-comment-authors-role/)
 *  Thread Starter [shadowarts](https://wordpress.org/support/users/shadowarts/)
 * (@shadowarts)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/how-to-display-comment-authors-role/#post-944582)
 * can you show me a example of that?
 *   Forum: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
   
   In reply to: [2.7 dashboard broken layout](https://wordpress.org/support/topic/27-dashboard-broken-layout/)
 *  [shadowarts](https://wordpress.org/support/users/shadowarts/)
 * (@shadowarts)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/27-dashboard-broken-layout/#post-927682)
 * s

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