• How do I go about showing either a custom image or just text that says what the commenter’s user level is in the comment loop? I’ve found a few plugins that will highlight comments if they’re from the admin, but all the ones that I can see are based off of manual inputs.

    I’d like to have an image or text next to the comment that indicates if the user is a subscriber or a contributor or an admin.

    Any ideas?

    thanks!

Viewing 1 replies (of 1 total)
  • Inside the loop:

    <?php print_r(get_userdata($post->post_author)->wp_capabilities); ?>

    You should be able to build an if conditional around that information.

Viewing 1 replies (of 1 total)
  • The topic ‘Show user levels in comments loop’ is closed to new replies.