I have a form where user can list their children and their age in a 2 column list.
Name | Age
I use the list un advance fields.
Now once these are entered in to a User Meta Field called our_children.
When I try to retrieve the data I see something like this:
a:1:{i:0;a:2:{s:4:"Name";s:6:"Elisha";s:3:"Age";s:2:"13";}}
I call the field using:
$our_children = get_user_meta ($user_id,"our_children");
How can I display this value so that I can get the name and age of children again.
I have tried:
foreach ( $our_children as $children ) {
echo '<tr><td>'. $our_children -> Name .'</td><td>'. $children -> Age .'</td></tr>';
}
but it doesn't show anything.
Thanks for your help.