Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

wiki tags

// Register Custom Taxonomy
function wiki_tags_taxonomy() {

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

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