Vertriebspartner CT
// Register Custom Taxonomy
function tq_vertrieb_ct() {
$labels = array(
'name' => _x( 'Länder', 'Taxonomy General Name', 'tq-wpr-cpts' ),
'singular_name' => _x( 'Land', 'Taxonomy Singular Name', 'tq-wpr-cpts' ),
'menu_name' => __( 'Land', 'tq-wpr-cpts' ),
'all_items' => __( 'Alle Länder', 'tq-wpr-cpts' ),
'parent_item' => __( 'Kontinent', 'tq-wpr-cpts' ),
'parent_item_colon' => __( 'Kontinent', 'tq-wpr-cpts' ),
'new_item_name' => __( 'Neuer Ländername', 'tq-wpr-cpts' ),
'add_new_item' => __( 'Neues Land hinzufügen', 'tq-wpr-cpts' ),
'edit_item' => __( 'Land bearbeiten', 'tq-wpr-cpts' ),
'update_item' => __( 'Land updaten', 'tq-wpr-cpts' ),
'view_item' => __( 'Land ansehen', 'tq-wpr-cpts' ),
'separate_items_with_commas' => __( 'Länder mit Komma trennen', 'tq-wpr-cpts' ),
'add_or_remove_items' => __( 'Land hinzufügen oder entfernen', 'tq-wpr-cpts' ),
'choose_from_most_used' => __( 'Von den meistgewählten wählen', 'tq-wpr-cpts' ),
'popular_items' => __( 'Populäre Länder', 'tq-wpr-cpts' ),
'search_items' => __( 'Land suchen', 'tq-wpr-cpts' ),
'not_found' => __( 'Nicht gefunden', 'tq-wpr-cpts' ),
'no_terms' => __( 'Kein Land', 'tq-wpr-cpts' ),
'items_list' => __( 'Länderliste', 'tq-wpr-cpts' ),
'items_list_navigation' => __( 'Länderlisten Navigation', 'tq-wpr-cpts' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => false,
'show_tagcloud' => false,
);
register_taxonomy( 'tq_vertrieb_tax', array( 'tq_vertrieb' ), $args );
}
add_action( 'init', 'tq_vertrieb_ct', 0 );