• Resolved ruferryman

    (@ruferryman)


    Hello. I have in plugins is the role of “Curator” and “Participant”, it was renamed the standard role of “admin” and “member”. To output them in the comments, I use the following code:

    <?php um_fetch_user ($comment->user_id)
    echo um_user ('role');?>

    However, instead of “Curator” displays “admin” instead of “Participant” is “member”.
    To fix this, I tried to change the code to this:
    <?php if(um_fetch_user($comment->user_id)=='admin') {echo 'Curator');}?>

    But then nothing is displayed.
    Help, how do I get to display labels for the roles? Thanks in advance.

    • This topic was modified 8 years, 5 months ago by ruferryman.

The topic ‘Wrong user role in comments’ is closed to new replies.