Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Osoby

if ( ! function_exists( 'osoby_taxonomy' ) ) {

// Register Custom Taxonomy
function osoby_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Osoby', 'Taxonomy General Name', 'customify' ),
		'singular_name'              => _x( 'Osoba', 'Taxonomy Singular Name', 'customify' ),
		'menu_name'                  => __( 'Kategorie Osoby', 'customify' ),
		'all_items'                  => __( 'Všechny kategorie', 'customify' ),
		'parent_item'                => __( 'Nadřazená kategorie', 'customify' ),
		'parent_item_colon'          => __( 'Nadřazená kategorie:', 'customify' ),
		'new_item_name'              => __( 'Název nové kategorie', 'customify' ),
		'add_new_item'               => __( 'Přidat novou kategorii', 'customify' ),
		'edit_item'                  => __( 'Upravit novou kategorii', 'customify' ),
		'update_item'                => __( 'Upravit kategorii', 'customify' ),
		'view_item'                  => __( 'Zobrazit kategorii', 'customify' ),
		'separate_items_with_commas' => __( 'Jednotlivé kategorie oddělit čárkami', 'customify' ),
		'add_or_remove_items'        => __( 'Přidat nebo odstranit kategorie', 'customify' ),
		'choose_from_most_used'      => __( 'Vybrat z nejpoužívanějších', 'customify' ),
		'popular_items'              => __( 'Oblíbené kategorie', 'customify' ),
		'search_items'               => __( 'Hledat kategorie', 'customify' ),
		'not_found'                  => __( 'Nenalezeno', 'customify' ),
		'no_terms'                   => __( 'Žádná kategorie', 'customify' ),
		'items_list'                 => __( 'Seznam kategorií', 'customify' ),
		'items_list_navigation'      => __( 'Navigace v kategoriích', 'customify' ),
	);
	$rewrite = array(
		'slug'                       => 'osoby',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => false,
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'osoby', array( 'osoby' ), $args );

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

}