Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

ZARA_Author_skill

if ( ! function_exists( 'zararonchi_add_author_skill' ) ) {

// Register Custom Taxonomy
function zararonchi_add_author_skill() {

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

}

// Hook into the 'init' action
add_action( 'init', 'zararonchi_add_author_skill', 0 );

}