对于这些情况,请为税务术语构建自己的元数据库,并使用radio或select。
我的fork of Jared Atchison\'s Custom Meta Box class 支持自定义分类元数据库。
上传完metabox目录后,使用该目录创建元框。
$prefix = \'xxx_\'; //Add your own unique prefix.
$meta_boxes = array();
$meta_boxes[] = array(
\'id\' => \'test_metabox\',
\'title\' => \'Test Metabox\',
\'pages\' => array(\'page\'), // post type
\'context\' => \'normal\',
\'priority\' => \'high\',
\'show_names\' => true, // Show field names on the left
\'fields\' => array(
array(
\'name\' => \'Test Taxonomy Radio\',
\'desc\' => \'Description Goes Here\',
\'id\' => $prefix.\'text_taxonomy_radio\',
\'taxonomy\' => \'\', //Enter Taxonomy Slug
\'type\' => \'taxonomy-radio\',
),
);
require_once(\'metabox/init.php\');