I work currently on windows 10 with XAMPP installed, PHP version 7.1.6. WordPress 4.8.
Everything is basically copied from docs. Metabox and extensions are included directly in my plugin files. Metabox 4.12.2 and MB Settings Page 1.3
(I don't know how to format code because the editor here has no buttons)
the field:
$meta_boxes[] = array(
'id' => 'brt-header-scripts',
'title' => __( 'Scripts before </head> tag', 'brt' ),
'settings_pages' => 'brt-scripts',
'fields' => array(
array(
'id' => 'brt-head-scripts',
'type' => 'textarea',
'clone' => true,
'sort_clone' => true,
'add_button' => __('Add another', 'brt'),
'attributes' => array(
'style' => 'height:250px',
),
)
)
);
the setting page:
$settings_pages[] = array(
'id' => 'brt-scripts',
'menu_title' => __( 'Additional scripts', 'brt' ),
'parent' => 'brt-options',
);