• Hi I’m building my own theme,

    now I’m using your plugin to show if users are verified or not.
    So this is working, but since I’m not using the username on the single profile pages I’m not able to show the badge. I’m showing the first name and last name based on the custom profile fields.

    I’m editing the cover-image-header.php and I tought I was able to do this with the follow code <?php if ( empty( get_user_meta( $bp_displayed_user_id, $bp_verified_member_admin->meta_box->meta_keys['verified'], true ) ) ) : ?> BADGE HERE <?php endif; ?> but for some reason it is displaying for all the users. Looks like it is getting the date form the current logged in user.

    How to achieve this?

Viewing 1 replies (of 1 total)
  • Plugin Author Themosaurus

    (@themosaurus)

    Hi,

    I believe you are on the right track.

    That if condition looks good to me, but make sure that you have defined the global $bp_verified_member_admin; before using it in your condition. Also, make sure that $bp_displayed_user_id contains the id of the displayed user, and not the logged in user.

    Hope this helps.

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘How to check if user is verified with php code?’ is closed to new replies.