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

    (@aswingiri)

    Hello @mitch8910

    You can use following code snippet to display user profile photo:

    $profile_photo = um_get_user_avatar_url( $user_id, $size );
    echo '<img src="'.$profile_photo.'"/>';
    Thread Starter mitch8910

    (@mitch8910)

    @aswingiri

    Thanks for the reply Aswin.

    It isn’t actually their Profile Photo I’m trying to display, it is a custom field.
    In the Profile Form, I added an “Image Upload” field with a meta key “user-company-logo”.

    I did this, because when I display a Profile Picture it is always cropped to be square, I need to display the full image.

    Thanks.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @mitch8910

    You can try the following code:

    $mp3_url = UM()->uploader()->get_upload_base_url() . um_user( 'ID' ) . DIRECTORY_SEPARATOR . um_profile( 'mp3' );

    The above example returns the full URL of the uploaded mp3 file.

    Regards,

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @mitch8910

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I display an Uploaded Image?’ is closed to new replies.