Client Type Taxonomy
// Register Custom Taxonomy
function skm_client_tax() {
$labels = array(
'name' => _x( 'Client', 'Taxonomy General Name', 'skm' ),
'singular_name' => _x( 'Client', 'Taxonomy Singular Name', 'skm' ),
'menu_name' => __( 'Client Type', 'skm' ),
'all_items' => __( 'Clients Types', 'skm' ),
'parent_item' => __( 'Client Type', 'skm' ),
'parent_item_colon' => __( 'Client Type:', 'skm' ),
'new_item_name' => __( 'New Client Type', 'skm' ),
'add_new_item' => __( 'Add Client Type', 'skm' ),
'edit_item' => __( 'Edit Client Type', 'skm' ),
'update_item' => __( 'Update Client Type', 'skm' ),
'separate_items_with_commas' => __( 'Separate Client Types with commas', 'skm' ),
'search_items' => __( 'Search Client TYpes', 'skm' ),
'add_or_remove_items' => __( 'Add or remove Client Type', 'skm' ),
'choose_from_most_used' => __( 'Choose from the most used Client Types', 'skm' ),
'not_found' => __( 'Client Type Not Found', 'skm' ),
);
$rewrite = array(
'slug' => 'client',
'with_front' => true,
'hierarchical' => false,
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'rewrite' => $rewrite,
);
register_taxonomy( 'skm_client_tax', array( 'post', ' page', ' dna_testimonials', ' skm_portfolio' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'skm_client_tax', 0 );