// Register Custom Taxonomy function custom_taxonomies() { $labels = array( 'name' => 'Typy projektů', 'singular_name' => 'Typ projektu', 'menu_name' => 'Typy projektů', 'all_items' => 'Všechny typy', 'parent_item' => 'Nadřaz. typ', 'parent_item_colon' => 'Nadřaz. typ:', 'new_item_name' => 'Název nového typu projektu', 'add_new_item' => 'Přidat nový typ projektu', 'edit_item' => 'Upravit typ projektu', 'update_item' => 'Aktualizovat typ projektu', 'view_item' => 'Zobrazit typ projektu', 'separate_items_with_commas' => 'Separate items with commas', 'add_or_remove_items' => 'Přidat nebo odebrat', 'choose_from_most_used' => 'Nejpoužívanější', 'popular_items' => 'Oblíbené', 'search_items' => 'Hledat', 'not_found' => 'Nenalezeno', 'no_terms' => 'No items', 'items_list' => 'Items list', 'items_list_navigation' => 'Items list navigation', ); $rewrite = array( 'slug' => 'typ-projektu', 'with_front' => true, 'hierarchical' => false, ); $args = array( 'labels' => $labels, 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, 'rewrite' => $rewrite, ); register_taxonomy( 'typprojektu', array( 'project' ), $args ); } add_action( 'init', 'custom_taxonomies', 0 );