• Hi,

    I’ve got a field within Advanced Custom Fields PRO which is then showing in the wordpress profile section

    On the registration form

    How can I get it to display on the profile and the list of members pages?
    I can see its trying to display the default avatar at the moment, but I must be able to assign the company logo instead of avatar?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    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,

    Thread Starter Trident Marketing Anglia Ltd

    (@tridentmarketing)

    @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.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cannot see profile image’ is closed to new replies.