Reply To: Displaying a list of users and their submitted data

Home Forums User Registration Displaying a list of users and their submitted data Reply To: Displaying a list of users and their submitted data

#18799

Mike Berg
Participant

Thanks! I’ve got it working now. For the bio, I realized that it was using the default WP “description” field for it, so once I removed ‘user_registration_’ from the field name, it worked, like so:

<?php 
 $bio = get_user_meta( $user->ID, 'description', true );
 echo $bio; 
?>

If anyone else finds this post, here’s the code I used to get an uploaded image to display:

<?php 
    $attachment_id = get_user_meta( $user->ID, 'user_registration_file_1551057795', true );
	$size = 'thumbnail';
	$image = wp_get_attachment_image_src( $attachment_id, $size );
?>
<img src="<?php echo $image[0]; ?>" />