Working with an Array inside Your Theme Options Array – Multiple Values

Assuming this array for example usage:

$options = array(
    "name" => __('Font','mytheme'),
    "desc" => __('Change the font face)','mytheme'),
    "id" => "mytheme_font",
    "std" => array('size' => '10px', 'face' => 'Arial', 'color' => '#000000'),
    "type" => "text",
 );

For question 1, to reference nested arrays, just reference them directly.

echo $options['std']['size'];

In the form input, if using the Settings API:

name="mytheme_options[std][size]"

Regarding question 2, it appears to me that you’re probably doing it wrong to being with, as that bit of code you have there makes no real sense. What is get_option($value['id'], $value['std']); supposed to do anyway?

You’d get your options array from the database like this:

$options = get_option('mytheme_options');

Individual options would then be like $options['name'] or $options['std']['face'] or what have you.