Thanks for the clarification. I get what you mean. I'm now able to add that taxonomy, however, now I get this error at the top of my screen:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/42/10173742/html/wp-content/themes/adultphoto-01-pink/functions.php:168) in /home/content/42/10173742/html/wp-content/plugins/easy-batch-uploader-0.4.0/class-main.php on line 135
It's interfering with a custom plugin. I e-mailed the guy who made it, still waiting for a reply - but figured I'd mention it here too.
Do you guys think this is a problem with the taxonomy I made, or with the plugin? Considering my other custom taxonomy didn't interfere with the plugin, I'm thinking I'm still doing something wrong with the new one.
This is the code that I have added:
Code:
<?php
/**
* Add custom taxonomies
*
* Additional custom taxonomies can be defined here
* http://codex.wordpress.org/Function_Reference/register_taxonomy
*/
function add_custom_taxonomies_site_init() {
// Add new "Site" taxonomy to Posts
register_taxonomy('Site', 'post', array(
// Hierarchical taxonomy (like categories)
'hierarchical' => false,
// This array of options controls the labels displayed in the WordPress Admin UI
'labels' => array(
'name' => _x( 'Site', 'taxonomy general name' ),
'singular_name' => _x( 'Site', 'taxonomy singular name' ),
'search_items' => __( 'Search Site' ),
'all_items' => __( 'All Site' ),
'parent_item' => __( 'Parent Site' ),
'parent_item_colon' => __( 'Parent Site:' ),
'edit_item' => __( 'Edit Model' ),
'update_item' => __( 'Update Site' ),
'add_new_item' => __( 'Add New Site' ),
'new_item_name' => __( 'New Site Name' ),
'menu_name' => __( 'Site' ),
),
// Control the slugs used for this taxonomy
'rewrite' => array(
'slug' => 'site', // This controls the base slug that will display before each term
'with_front' => false, // Don't display the category base before "/model/"
'hierarchical' => true // This will allow URL's like "/locations/boston/cambridge/"
),
));
}
add_action( 'init', 'add_custom_taxonomies_site_init', 0 );
?>