Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

TAX Schulart

if ( ! function_exists( 'schulart' ) ) {

// Register Custom Taxonomy
function schulart() {

	$labels = array(
		'name'                       => _x( 'Schularten', 'Taxonomy General Name', 'bbss' ),
		'singular_name'              => _x( 'Schulart', 'Taxonomy Singular Name', 'bbss' ),
		'menu_name'                  => __( 'Schularten', 'bbss' ),
		'all_items'                  => __( 'Alle Schularten', 'bbss' ),
		'parent_item'                => __( 'Schularte Eltern', 'bbss' ),
		'parent_item_colon'          => __( 'Parent Item:', 'bbss' ),
		'new_item_name'              => __( 'Neue Schulart', 'bbss' ),
		'add_new_item'               => __( 'Neue Schulart', 'bbss' ),
		'edit_item'                  => __( 'Schulart bearbeiten', 'bbss' ),
		'update_item'                => __( 'Schulart aktualisieren', 'bbss' ),
		'view_item'                  => __( 'Schulart ansehen', 'bbss' ),
		'separate_items_with_commas' => __( 'Mehrere mit Komma trennen', 'bbss' ),
		'add_or_remove_items'        => __( 'Schulart hinzufügen oder entfernen', 'bbss' ),
		'choose_from_most_used'      => __( 'Aus meistgenutzten wählen', 'bbss' ),
		'popular_items'              => __( 'Beliebte Schularten', 'bbss' ),
		'search_items'               => __( 'Schularten durchsuchen', 'bbss' ),
		'not_found'                  => __( 'Keine Schulart gefunden', 'bbss' ),
		'no_terms'                   => __( 'Keine Schulart', 'bbss' ),
		'items_list'                 => __( 'Liste Schularten', 'bbss' ),
		'items_list_navigation'      => __( 'Schularten Liste', 'bbss' ),
	);
	$rewrite = array(
		'slug'                       => 'schulart',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => false,
		'show_tagcloud'              => false,
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'schulart', array( 'cpt_bildungsangebote' ), $args );

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

}