peace808
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Update. I have reverted Frontend Admin to the previous version 3.18.7 to fix the issue. All working as should on my site now. I will rigously test future updates.
Forgot to mention Ultimate Member also used.
Does anyone know where this location is being referred to?
the variable “user” in the member directory
Does it mean the extra user information below tagline, found in the Member directory settings?
The acf image url works in other parts of the site like this:
$prof_user_id = um_profile_id();
$company_logo = get_field(‘company_logo’, ‘user_’. $prof_user_id );but this won’t work if I try replacing $key = ‘um_logo’; with:
// Enter the field meta_key here: $key = get_field('company_logo', 'user_'. $prof_user_id ); $field = UM()->fields()->get_field( $key ); if ( $field && $field['type'] === 'image' ) { $value = UM()->fields()->field_value( $key ); if ( $value ) { $imgURL = UM()->uploader()->get_upload_user_base_url( $user_id ) . '/' . $value; $data_array[$key] = [ 'url' => $imgURL, 'html' => '<img src="' . esc_url( $imgURL ) . '" alt="' . esc_attr( $field['label'] ) . '"/>' ]; } }
updated the plugin and ok now
Viewing 5 replies - 1 through 5 (of 5 total)