Taxonomy- Issue Editions
// Register Custom Taxonomy
function register_issue_taxonomy() {
$labels = array(
'name' => _x( 'Editions', 'Taxonomy General Name', 'html5reset' ),
'singular_name' => _x( 'Edition', 'Taxonomy Singular Name', 'html5reset' ),
'menu_name' => __( 'Editions', 'html5reset' ),
'all_items' => __( 'All Editions', 'html5reset' ),
'parent_item' => __( 'Parent Edition', 'html5reset' ),
'parent_item_colon' => __( 'Parent Edition:', 'html5reset' ),
'new_item_name' => __( 'New Edition Name', 'html5reset' ),
'add_new_item' => __( 'Add New Edition', 'html5reset' ),
'edit_item' => __( 'Edit Edition', 'html5reset' ),
'update_item' => __( 'Update Edition', 'html5reset' ),
'separate_items_with_commas' => __( 'Separate Editions with commas', 'html5reset' ),
'search_items' => __( 'Search Editions', 'html5reset' ),
'add_or_remove_items' => __( 'Add or remove Editions', 'html5reset' ),
'choose_from_most_used' => __( 'Choose from the most used Editions', 'html5reset' ),
'not_found' => __( 'Not Found', 'html5reset' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'query_var' => 'issue_edition',
);
register_taxonomy( 'issue_edition', array( 'issue' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'register_issue_taxonomy', 0 );