In my functions I'm registering multiple metaboxes with custom fields. A single metabox array for instance, looks like this:
In functions.php
$meta_boxes[] = array(
'id' => 'general_info',
'title' => 'General Information',
'pages' => array('post', 'page', 'link'), // multiple post types, accept custom post types
'context' => 'normal', // normal, advanced, side (optional)
'priority' => 'high', // high, low (optional)
'fields' => array(
array(
'name' => 'Asking Price',
'id' => $prefix . 'asking_price',
'type' => 'text',
'std' => ''
),
array(
'name' => 'Currency',
'id' => $prefix . 'currency',
'type' => 'text',
'std' => 'USD'
),
array(
'name' => 'Salesman',
'id' => $prefix . 'salesman',
'type' => 'text',
'std' => 'Your Name'
)
)
);
In my theme, how can get all the field names (and even values if possible) from metabox general_info
? I'm trying to retrieve data from each metabox separately.