nickp
11-16-2010, 10:55 AM
I'm sure this is one of those easy queries that I'm making harder! I am using an array that looks like this:
$meta_boxes[] = array(
'id' => 'person_meta_box',
'fields' => array(
array(
'name' => 'Born:',
'id' => 'date_of_birth'
),
array(
'name' => 'Died:',
'id' => 'date_of_death'
)
)
);
I am getting into a twist over how to get the field 'name' into a variable to echo to the screen. Can you help? (Sadly, simplifying the data structure is not possible!)
$meta_boxes[] = array(
'id' => 'person_meta_box',
'fields' => array(
array(
'name' => 'Born:',
'id' => 'date_of_birth'
),
array(
'name' => 'Died:',
'id' => 'date_of_death'
)
)
);
I am getting into a twist over how to get the field 'name' into a variable to echo to the screen. Can you help? (Sadly, simplifying the data structure is not possible!)