Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

thema custom taxonomy foodup!

if ( ! function_exists( 'custom_taxonomy' ) ) {

// Register Custom Taxonomy
function custom_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Thema's', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'Thema', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'Thema's', 'text_domain' ),
		'all_items'                  => __( 'Alle thema's', 'text_domain' ),
		'parent_item'                => __( 'Hoofdthema', 'text_domain' ),
		'parent_item_colon'          => __( 'Hoofdthema:', 'text_domain' ),
		'new_item_name'              => __( 'Nieuw thema', 'text_domain' ),
		'add_new_item'               => __( 'Voeg nieuw thema toe', 'text_domain' ),
		'edit_item'                  => __( 'Bewerk thema', 'text_domain' ),
		'update_item'                => __( 'Update thema', 'text_domain' ),
		'view_item'                  => __( 'Bekijk thema', 'text_domain' ),
		'separate_items_with_commas' => __( 'Scheidt thema´s met een komma', 'text_domain' ),
		'add_or_remove_items'        => __( 'Voeg thema´s toe of verwijder ze', 'text_domain' ),
		'choose_from_most_used'      => __( 'Kies uit meest gebruikte thema´s', 'text_domain' ),
		'popular_items'              => __( 'Populaire thema´s', 'text_domain' ),
		'search_items'               => __( 'Zoek thema´s', 'text_domain' ),
		'not_found'                  => __( 'Geen thema´s gevonden', 'text_domain' ),
		'no_terms'                   => __( 'Geen thema´s', 'text_domain' ),
		'items_list'                 => __( 'Thema lijst', 'text_domain' ),
		'items_list_navigation'      => __( 'Thema lijst navigatie', 'text_domain' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'show_in_rest'               => false,
	);
	register_taxonomy( 'thema', array( 'page', 'projecten' ), $args );

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

}