我在3.0b2中有一个主题,注册自定义帖子类型并将其显示在管理菜单中——升级到3.1.2后,它们不再出现在侧栏管理菜单中(尽管它们确实可以从主题页中正确查询站点的非管理部分)。show_ui
设置为true
和添加show_in_menu
一视同仁的措施没有效果。有人能帮忙吗?
function balmer_init() {
//print ("Here");
register_post_type(\'gig\', array(
\'label\' => __(\'Gigs\'),
\'singular_label\' => __(\'Gig\'),
\'public\' => true,
\'show_ui\' => true,
\'_builtin\' => true,
\'_edit_link\' => \'post.php?post=%d\',
\'capability_type\' => \'post\',
\'hierarchical\' => false,
\'rewrite\' => false,
\'query_var\' => false,
\'supports\' => array(\'title\', \'editor\',/* \'custom-fields\' */),
\'register_meta_box_cb\' => \'gig_callback\',
));
}
add_action("init","balmer_init");
谢谢!