“image” field type retrieval
-
i see from inspection of user export that the “image” field type is stored as an integer…i assume that this is the attachment_id, so i assume will this work, no?
$imgid = get_user_meta( $user->ID, 'field-slug'));
$imgurl = wp_get_attachment_image_url(intval($imgid));
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘“image” field type retrieval’ is closed to new replies.