function create_custom_taxonomy() {
$labels = array(
\'name\' => \'cat_name\',
\'singular_name\' => \'singular111_cat_name\',
\'search_items\' => \'abc\',
\'all_items\' => __( \'All Topics\' ),
\'parent_item\' => __( \'Parent Topic\' ),
\'parent_item_colon\' => __( \'Parent Topic:\' ),
\'edit_item\' => __( \'Edit Topic\' ),
\'update_item\' => __( \'Update Topic\' ),
\'add_new_item\' => __( \'Add New Topic\' ),
\'new_item_name\' => __( \'New Topic Name\' ),
\'menu_name\' => __( \'Topics\' ),
);
// Now register the taxonomy
register_taxonomy(\'cat_name\',array(\'post\'), array(
\'hierarchical\' => true,
\'labels\' => $labels,
\'show_ui\' => true,
\'show_admin_column\' => true,
\'query_var\' => true,
\'rewrite\' => array( \'slug\' => \'name\' ),
));
}
add_action( \'init\', \'create_custom_taxonomy\', 0 );