Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Portfolio Skills Taxonomy

The Skills for the Portfolio

if ( ! function_exists( 'ss_portfolio_taxonomy' ) ) {

// Register Custom Taxonomy
function ss_portfolio_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Skills', 'Taxonomy General Name', 'ss_sitespecific' ),
		'singular_name'              => _x( 'Skill', 'Taxonomy Singular Name', 'ss_sitespecific' ),
		'menu_name'                  => __( 'Skills', 'ss_sitespecific' ),
		'all_items'                  => __( 'All skills', 'ss_sitespecific' ),
		'parent_item'                => __( 'Parent skill', 'ss_sitespecific' ),
		'parent_item_colon'          => __( 'Parent skill:', 'ss_sitespecific' ),
		'new_item_name'              => __( 'New skill name', 'ss_sitespecific' ),
		'add_new_item'               => __( 'Add new skill', 'ss_sitespecific' ),
		'edit_item'                  => __( 'Edit skill', 'ss_sitespecific' ),
		'update_item'                => __( 'Update skill', 'ss_sitespecific' ),
		'view_item'                  => __( 'View skill', 'ss_sitespecific' ),
		'separate_items_with_commas' => __( 'Separate skills with commas', 'ss_sitespecific' ),
		'add_or_remove_items'        => __( 'Add or remove skills', 'ss_sitespecific' ),
		'choose_from_most_used'      => __( 'Choose from the most used skills', 'ss_sitespecific' ),
		'popular_items'              => __( 'Popular skills', 'ss_sitespecific' ),
		'search_items'               => __( 'Search skills', 'ss_sitespecific' ),
		'not_found'                  => __( 'Skill not Found', 'ss_sitespecific' ),
	);
	$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'      => 'ss_portfolio_update_count_callback',
	);
	register_taxonomy( 'skills', array( 'portfolio' ), $args );

}

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

}