Hello @tridentmarketing
Ultimate member is not integrated with Advanced Custom Field Pro. You can use the same meta_key as in ACF-pro to display data on UM profile form or if you are trying to display it as a profile photo try using the following filter:
add_filter( 'get_avatar_url', function($url,$id_or_email,$args){
// change the image URL here
return $url;
}, 20, 3 );
Regards,
@aswingiri
Thank you,
So the acf field is called company_logo – it is set to return output to image URL within acf. I added your code above direct to my function code but its still not showing the right info.
If I inspect the code it shows@
<img src="https://gravatar.com/avatar/c4fb7d97da67b28595533e24f769b7a1?s=400&r=G&d=mm" class="gravatar avatar avatar-190 um-avatar um-avatar-gravatar" width="190" height="190" alt="Trident Marketing Anglia Ltd " data-default="https://tridentmarketinguk.com/funeral/wp-content/plugins/ultimate-member/assets/img/default_avatar.jpg" onerror="if ( ! this.getAttribute('data-load-error') ){ this.setAttribute('data-load-error', '1');this.setAttribute('src', this.getAttribute('data-default'));}">
but doesn’t show the company logo instead – I’ve tried all sorts of things to get it to display the right logo, I even tried just displaying the php code within a shortcode but that didn’t show it either.
Hi @tridentmarketing
I’ve replied to your other topic with a code snippet. Let me know if you’re still having issues with the avatar in this topic: https://ww.wp.xz.cn/support/topic/cannot-see-any-acf-form-fields-on-my-profile-page/
I’m marking this as resolved now.