php - User Registration - Display User Uploading Image
one text
Solution:
The ID you're getting is probably the ID of an attachment. You can find the image information using wp_get_attachment_image_src
, then display it:
$image_attributes = wp_get_attachment_image_src( $current_user->user_registration_upload_picture );
if ($image_attributes) : ?>
<img src="<?php echo $image_attributes[0]; ?>" width="<?php echo $image_attributes[1]; ?>" height="<?php echo $image_attributes[2]; ?>" />
<?php endif; ?>
Source