我在Wordpress上使用register\\u post\\u类型和register\\u分类法时遇到问题。我在函数上创建了代码。php,它不会更新我的面板。为什么?
//Categorias personalizadas
register_taxonomy(\'produtos\', \'produto\', array(\'hierarchical\' => true, \'label\' => \'Categorias de Produtos\', \'query_var\' => true, \'rewrite\' => true));
//Posts personalizados
add_action(\'init\', \'create_post_type\');
function create_post_type() {
register_post_type(\'produto\',
array(
\'labels\' => array(
\'name\' => __(\'Produto\'),
\'singular_name\' => __(\'Produto\')),
\'public\' => true,
\'rewrite\' => true,
\'supports\' => array(\'title\',\'editor\',\'author\',\'thumbnail\',\'excerpt\',\'comments\',\'custom-fields\',\'image\'),
\'has_archive\' => true)
);
}