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

#19164

Mike Berg
Participant

Ok I have another question on this topic. What is the exact PHP for displaying a series of checkboxes? When I follow the above steps, it just outputs “Array”.

I’ve tried this, but it’s not right. What have I got wrong, here?

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

Thanks!