Obce
if ( ! function_exists( 'obce_taxonomy' ) ) {
// Register Custom Taxonomy
function obce_taxonomy() {
$labels = array(
'name' => _x( 'Obce', 'Taxonomy General Name', 'customify' ),
'singular_name' => _x( 'Obec', 'Taxonomy Singular Name', 'customify' ),
'menu_name' => __( 'Obce', 'customify' ),
'all_items' => __( 'Všechny obce', 'customify' ),
'parent_item' => __( 'Nadřazená obec', 'customify' ),
'parent_item_colon' => __( 'Nadřazená obec:', 'customify' ),
'new_item_name' => __( 'Název nové obce', 'customify' ),
'add_new_item' => __( 'Přidat obec', 'customify' ),
'edit_item' => __( 'Upravit obec', 'customify' ),
'update_item' => __( 'Aktualizovat obec', 'customify' ),
'view_item' => __( 'Zobrazit obec', 'customify' ),
'separate_items_with_commas' => __( 'Oddělit obce čárkou', 'customify' ),
'add_or_remove_items' => __( 'Přidat nebo odstranit obec', 'customify' ),
'choose_from_most_used' => __( 'Vybrat z nejvíce užívaných obcí', 'customify' ),
'popular_items' => __( 'Populární obce', 'customify' ),
'search_items' => __( 'Hledat obec', 'customify' ),
'not_found' => __( 'Nenalezeno', 'customify' ),
'no_terms' => __( 'Žádná položka', 'customify' ),
'items_list' => __( 'Seznam obcí', 'customify' ),
'items_list_navigation' => __( 'Navigace seznamu obcí', 'customify' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
);
register_taxonomy( 'obce', array( 'mista' ), $args );
}
add_action( 'init', 'obce_taxonomy', 0 );
}