I have a field set up that’s located in User. It’s a image field that the User can upload and I’m trying to get the URL so I can output it into an img src. I’m using other text fields and I’m capable of pulling those just fine.
<?php $user_id = get_query_var( 'author' ) ?>
<?php $clan_member_info = get_userdata($user_id); ?>
<p><?php if(!empty($clan_member_info->psn_id)) echo '<li>' . $clan_member_info->psn_id . '</li>'; ?></p> //Example of me pulling a text field
<?php if(!empty($clan_member_info->cover_photo)) echo '<img src="'.$clan_member_info->cover_photo.'"/>'; ?>
The example of the psn_id pulls perfectly. The img returns this <img src="95">.