0
我在我的文章編輯器中有一個metabox,它允許我選擇一個類別,我希望這改變爲可以選擇多個選項的複選框。我已經在下面的工作,我會想象它的變化taxonomy_radio喜歡的東西taxonomy_checkbox的情況,但是完全崩潰metabox:WordPress分類複選框
$meta_boxes['test_metabox'] = array(
'id' => 'test_metabox',
'title' => __('TEST', 'cmb'),
'pages' => array('post',),
'context' => 'normal',
'priority' => 'high',
'show_names' => true,
'fields' => array(
array(
'name' => __('Category', 'cmb'),
'desc' => __('field description (optional)', 'cmb'),
'id' => 'test-cat',
'type' => 'taxonomy_radio',
'taxonomy' => 'category'
),
任何幫助將是巨大的。