status projektów
if ( ! function_exists( 'ct_status_projektow' ) ) {
// Register Custom Taxonomy
function ct_status_projektow() {
$labels = array(
'name' => _x( 'Statusy projektów', 'Taxonomy General Name', 'rd_theme' ),
'singular_name' => _x( 'Status projektu', 'Taxonomy Singular Name', 'rd_theme' ),
'menu_name' => __( 'Status projektów', 'rd_theme' ),
'all_items' => __( 'Wszystkie statusy', 'rd_theme' ),
'parent_item' => __( 'Nadrzędny status', 'rd_theme' ),
'parent_item_colon' => __( 'Nadrzędny status:', 'rd_theme' ),
'new_item_name' => __( 'Nazwa nowego statusu', 'rd_theme' ),
'add_new_item' => __( 'Dodaj nowy status', 'rd_theme' ),
'edit_item' => __( 'Edytuj status', 'rd_theme' ),
'update_item' => __( 'Aktualizuj status', 'rd_theme' ),
'view_item' => __( 'Zobacz status', 'rd_theme' ),
'separate_items_with_commas' => __( 'Oddziel statusy przecinkami', 'rd_theme' ),
'add_or_remove_items' => __( 'Dodaj / usuń status', 'rd_theme' ),
'choose_from_most_used' => __( 'Wybierz spośród najczęściej używanych', 'rd_theme' ),
'popular_items' => __( 'Popularne statusy', 'rd_theme' ),
'search_items' => __( 'Szukaj statusu', 'rd_theme' ),
'not_found' => __( 'Nie znaleziono', 'rd_theme' ),
'no_terms' => __( 'Nie znaleziono w koszu', 'rd_theme' ),
'items_list' => __( 'Lista statusów', 'rd_theme' ),
'items_list_navigation' => __( 'Nawigacja listy statusów', 'rd_theme' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
);
register_taxonomy( 'status_projektow', array( 'projekty' ), $args );
}
add_action( 'init', 'ct_status_projektow', 0 );
}