Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Custom taxonomy – Conferencies

// Register Custom Taxonomy
function anwp_conferences_custom_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Conferencies', 'Taxonomy General Name', 'anwp' ),
		'singular_name'              => _x( 'Conference', 'Taxonomy Singular Name', 'anwp' ),
		'menu_name'                  => __( 'Conference', 'anwp' ),
		'all_items'                  => __( 'All Conferencies', 'anwp' ),
		'parent_item'                => __( 'Parent Conference', 'anwp' ),
		'parent_item_colon'          => __( 'Parent Conference:', 'anwp' ),
		'new_item_name'              => __( 'New Conference Name', 'anwp' ),
		'add_new_item'               => __( 'Add New Conference', 'anwp' ),
		'edit_item'                  => __( 'Edit Conference', 'anwp' ),
		'update_item'                => __( 'Update Conference', 'anwp' ),
		'view_item'                  => __( 'View Conference', 'anwp' ),
		'separate_items_with_commas' => __( 'Separate Conferencies with commas', 'anwp' ),
		'add_or_remove_items'        => __( 'Add or remove Conferencies', 'anwp' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'anwp' ),
		'popular_items'              => __( 'Popular Conferencies', 'anwp' ),
		'search_items'               => __( 'Search Conferencies', 'anwp' ),
		'not_found'                  => __( 'Not Found', 'anwp' ),
		'no_terms'                   => __( 'No Conferencies', 'anwp' ),
		'items_list'                 => __( 'Conferencies list', 'anwp' ),
		'items_list_navigation'      => __( 'Conferencies list navigation', 'anwp' ),
	);
	$rewrite = array(
		'slug'                       => 'konferencija',
		'with_front'                 => true,
		'hierarchical'               => true,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
		'show_in_rest'               => true,
	);
	register_taxonomy( 'conference', array( 'organizers', ' speakers', ' sponsors' ), $args );

}
add_action( 'init', 'anwp_conferences_custom_taxonomy', 0 );