add custom link under author link in replies
I have a custom wp role that I have displaying under each user author link in all replies. There are different custom roles depending on the user. I was able to use it by implementing this snippet (inserted on loop-single-reply.php):
<?php $user = new WP_User( bbp_get_reply_author_id() ); echo $user->roles; ?>
My question is how to get some text (with link) to show if a user has a specific custom role. For example, is user has “Graduate” role, I need a link with text to show under the role, in all the replies for all users.
I’m not coder by any means, but I realize it will probably take a php “if” statement. Any suggestions on how I might accomplish this? Thanks for any help.
- You must be logged in to reply to this topic.