Thanks for your quick reply.
1. After I press Save Changes, my changes aren’t saved for the custom taxonomies.
2. Here is the code to create the taxonomies:
//------------------------- Taxonomies --------------------------------
// hook into the init action and call create_version_taxonomy when it fires
add_action( 'init', 'create_version_taxonomy', 0 );
// Create and register a custom taxonomy for product versions
function create_version_taxonomy() {
// Add new taxonomy, make it non-hierarchical (like tags)
$labels = array(
'name' => _x( 'Versions', 'Taxonomy General Name' ),
'singular_name' => _x( 'Version', 'Taxonomy Singular Name' ),
'search_items' => __( 'Search Versions' ),
'popular_items' => __( 'Popular Versions' ),
'all_items' => __( 'All Versions' ),
'parent_item' => __( 'Parent Version' ),
'parent_item_colon' => __( 'Parent Version:' ),
'edit_item' => __( 'Edit Version' ),
'update_item' => __( 'Update Version' ),
'add_new_item' => __( 'Add New Version' ),
'new_item_name' => __( 'New Version Number' ),
'separate_items_with_commas' => __( 'Separate versions with commas' ),
'add_or_remove_items' => __( 'Add or remove versions' ),
'choose_from_most_used' => __( 'Choose from the most used versions' ),
'not_found' => __( 'No version found.' ),
'menu_name' => __( 'Version' ),
);
$args = array(
'hierarchical' => false,
'labels' => $labels,
'show_ui' => true,
'show_admin_column' => true,
'update_count_callback' => '_update_post_term_count',
'query_var' => true,
'rewrite' => array('slug' => 'version'),
);
//make it available for both pages and posts
//register_taxonomy('Version', 'page', $args);
register_taxonomy('Version', array('page','post'), $args);
}
// hook into the init action and call create_product_taxonomy when it fires
add_action( 'init', 'create_product_taxonomy', 0 );
// Create and register a custom taxonomy for product names
function create_product_taxonomy() {
// Add new taxonomy, make it hierarchical (like categories)
$labels = array(
'name' => _x( 'Products', 'Taxonomy General Name' ),
'singular_name' => _x( 'Product', 'Taxonomy Singular Name' ),
'search_items' => __( 'Search Products' ),
'all_items' => __( 'All Products' ),
'parent_item' => __( 'Parent Product' ),
'parent_item_colon' => __( 'Parent Product:' ),
'edit_item' => __( 'Edit Product' ),
'update_item' => __( 'Update Product' ),
'add_new_item' => __( 'Add New Product' ),
'new_item_name' => __( 'New Product Name' ),
'menu_name' => __( 'Product' ),
);
$args = array(
'hierarchical' => true,
'labels' => $labels,
'show_ui' => true,
'show_admin_column' => true,
'query_var' => true,
'rewrite' => array('slug' => 'product'),
);
//make it available for both pages and posts
register_taxonomy('Product', array('page','post'), $args);
}
Thanks for your help!