Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

TQ CT Trainings

// Register Custom Taxonomy
function tq_training_ct() {

	$labels = array(
		'name'                       => _x( 'Kategorien', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'Kategorie', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'Kategorie', 'text_domain' ),
		'all_items'                  => __( 'Alle Kategorien', 'text_domain' ),
		'parent_item'                => __( 'Übergeordnete Kategorie', 'text_domain' ),
		'parent_item_colon'          => __( 'Übergeordnet', 'text_domain' ),
		'new_item_name'              => __( 'Neuer Kategorienname', 'text_domain' ),
		'add_new_item'               => __( 'Neue Kategorie hinzufügen', 'text_domain' ),
		'edit_item'                  => __( 'Kategorie bearbeiten', 'text_domain' ),
		'update_item'                => __( 'Kategorie updaten', 'text_domain' ),
		'view_item'                  => __( 'Kategorie ansehen', 'text_domain' ),
		'separate_items_with_commas' => __( 'Kategorien mit Komma trennen', 'text_domain' ),
		'add_or_remove_items'        => __( 'Hinzufügen oder entfernen', 'text_domain' ),
		'choose_from_most_used'      => __( 'Meist verwendeten', 'text_domain' ),
		'popular_items'              => __( 'Populäre Kategorien', 'text_domain' ),
		'search_items'               => __( 'Suche Kategorie', 'text_domain' ),
		'not_found'                  => __( 'Nicht gefunden', 'text_domain' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => false,
	);
	register_taxonomy( 'ct_training', array( 'cpt_training' ), $args );

}

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