akce
// Register Custom Taxonomy
function akce_taxonomy() {
$labels = array(
'name' => 'Typy',
'singular_name' => 'Typ',
'menu_name' => 'Typ akce',
'all_items' => 'Všechny typy akce',
'parent_item' => 'Parent Item',
'parent_item_colon' => 'Parent Item:',
'new_item_name' => 'Nový typ akce',
'add_new_item' => 'Přidat nový typ akce',
'edit_item' => 'Upravit typ akce',
'update_item' => 'Aktualizovat typ akce',
'view_item' => 'Prohlednout typ akce',
'separate_items_with_commas' => 'Separate items with commas',
'add_or_remove_items' => 'Add or remove items',
'choose_from_most_used' => 'Vybrat z nejvíce používaných',
'popular_items' => 'Oblíbené akce',
'search_items' => 'Prohledat akce',
'not_found' => 'Nenalezeno',
'no_terms' => 'Žádné akce',
'items_list' => 'Seznam akcí',
'items_list_navigation' => 'Navigace v seznamu akcí',
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
);
register_taxonomy( 'typ', array( 'post' ), $args );
}
add_action( 'init', 'akce_taxonomy', 0 );