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">.
Big news today folks! I'm very excited to announce that the Delicious Brains plugins including Advanced Custom Fields and WP Migrate are now part of the WP Engine family of products.🎉 Check out the full blog post for the details: https://t.co/tcMVq42g7dpic.twitter.com/uCF3ZpKXgT