Pytania taxonomy
if ( ! function_exists( 'lbn_pytania_taxonomy' ) ) {
// Register Custom Taxonomy
function lbn_pytania_taxonomy() {
$labels = array(
'name' => _x( 'Kategorie pytań', 'Taxonomy General Name', 'lbn' ),
'singular_name' => _x( 'Kategoria pytań', 'Taxonomy Singular Name', 'lbn' ),
'menu_name' => __( 'Kategoria pytań', 'lbn' ),
'all_items' => __( 'Wszystkie', 'lbn' ),
'parent_item' => __( 'Nadżędna', 'lbn' ),
'parent_item_colon' => __( 'Nadżędne', 'lbn' ),
'new_item_name' => __( 'Nowa kategoria', 'lbn' ),
'add_new_item' => __( 'Dodaj kategorię', 'lbn' ),
'edit_item' => __( 'Edytuj', 'lbn' ),
'update_item' => __( 'Zaktualizuj', 'lbn' ),
'view_item' => __( 'Zobacz', 'lbn' ),
'separate_items_with_commas' => __( 'Separate items with commas', 'lbn' ),
'add_or_remove_items' => __( 'Add or remove items', 'lbn' ),
'choose_from_most_used' => __( 'Choose from the most used', 'lbn' ),
'popular_items' => __( 'Popular Items', 'lbn' ),
'search_items' => __( 'Wyszukaj', 'lbn' ),
'not_found' => __( 'Nie znaleziono', 'lbn' ),
'no_terms' => __( 'No items', 'lbn' ),
'items_list' => __( 'Items list', 'lbn' ),
'items_list_navigation' => __( 'Items list navigation', 'lbn' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
);
register_taxonomy( 'pytania_categories', array( 'pytania' ), $args );
}
add_action( 'init', 'lbn_pytania_taxonomy', 0 );
}