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

#19239

Mike Berg
Participant

Oh sheesh, I figured it out. Some of those fields were empty. I solved the problem by checking to see if the array was empty or not. It’s working with this code:

<?php 
    $shiftchoices = get_user_meta( $user->ID, 'user_registration_check_box_1548908196', true );
    if($shiftchoices){
	    foreach($shiftchoices as $shiftchoice){
		    echo $shiftchoice;
		    echo '<br />'; 
	    }
    }
?>