Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

skill-tax

if ( ! function_exists( 'buid_skill_taxonomy' ) ) {

// Register Custom Taxonomy
function buid_skill_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Skills', 'Taxonomy General Name', 'coolninja' ),
		'singular_name'              => _x( 'Skill', 'Taxonomy Singular Name', 'coolninja' ),
		'menu_name'                  => __( 'Skill', 'coolninja' ),
		'all_items'                  => __( 'All Skills', 'coolninja' ),
		'parent_item'                => __( 'Parent Skill', 'coolninja' ),
		'parent_item_colon'          => __( 'Parent Skill:', 'coolninja' ),
		'new_item_name'              => __( 'New Skill Name', 'coolninja' ),
		'add_new_item'               => __( 'Add New Skill', 'coolninja' ),
		'edit_item'                  => __( 'Edit Skill', 'coolninja' ),
		'update_item'                => __( 'Update Skill', 'coolninja' ),
		'view_item'                  => __( 'View Skill', 'coolninja' ),
		'separate_items_with_commas' => __( 'Separate Skills with commas', 'coolninja' ),
		'add_or_remove_items'        => __( 'Add or remove Skills', 'coolninja' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'coolninja' ),
		'popular_items'              => __( 'Popular Skills', 'coolninja' ),
		'search_items'               => __( 'Search Skills', 'coolninja' ),
		'not_found'                  => __( 'Skill Not Found', 'coolninja' ),
		'no_terms'                   => __( 'No Skills', 'coolninja' ),
		'items_list'                 => __( 'Skills list', 'coolninja' ),
		'items_list_navigation'      => __( 'Skills list navigation', 'coolninja' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'update_count_callback'      => 'skill_count',
	);
	register_taxonomy( 'skill', array( 'coolninja' ), $args );

}
add_action( 'init', 'buid_skill_taxonomy', 0 );

}