I'm trying to add a metabox to select a sidebar per page. In order to create the metaboxes I use this class
The construction is fairly easy:
$meta_boxes[] = array(
'id' => 'sidebars_side',
'title' => 'Page Sidebar',
'pages' => array('page', 'post'),
'context' => 'side',
'priority' => 'low',
'fields' => array(
array(
'name' => 'Sidebars',
'id' => 'tst_sidebars',
'type' => 'select',
'options' => array(
ARRAY OF SIDEBARS GOES HERE
),
'multiple' => false,
)
)
);
But I can't for the love of God to construct the array properly. I checked this post
which is great, but I'm stuck somehow. Any help would be highly appreciated.