Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

ihoo – wydanie

‘wydanie’ custom taxonomy

// Register Custom Taxonomy
function wydanie_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Wydania', 'Taxonomy General Name', 'ihoo' ),
		'singular_name'              => _x( 'Wydanie', 'Taxonomy Singular Name', 'ihoo' ),
		'menu_name'                  => __( 'Wydanie', 'ihoo' ),
		'all_items'                  => __( 'Wszystkie', 'ihoo' ),
		'parent_item'                => __( 'Parent Item', 'ihoo' ),
		'parent_item_colon'          => __( 'Parent Item:', 'ihoo' ),
		'new_item_name'              => __( 'Nowe', 'ihoo' ),
		'add_new_item'               => __( 'Dodaj', 'ihoo' ),
		'edit_item'                  => __( 'Edytuj', 'ihoo' ),
		'update_item'                => __( 'Aktualizuj', 'ihoo' ),
		'separate_items_with_commas' => __( '', 'ihoo' ),
		'search_items'               => __( 'Szukaj', 'ihoo' ),
		'add_or_remove_items'        => __( 'Dodaj lub usuń', 'ihoo' ),
		'choose_from_most_used'      => __( 'Wybierz', 'ihoo' ),
		'not_found'                  => __( 'Nie znaleziono', 'ihoo' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => false,
		'show_ui'                    => false,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => false,
		'show_tagcloud'              => false,
	);
	register_taxonomy( 'wydanie', array( 'kwartalnik-opinia' ), $args );

}

// Hook into the 'init' action
add_action( 'init', 'wydanie_taxonomy', 0 );