Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Kategori Bantuan

// Register Custom Taxonomy
function kategori_bantuan() {

	$labels = array(
		'name'                       => _x( 'Kategori', 'Taxonomy General Name', 'teksno' ),
		'singular_name'              => _x( 'Kategori', 'Taxonomy Singular Name', 'teksno' ),
		'menu_name'                  => __( 'Kategori', 'teksno' ),
		'all_items'                  => __( 'Semua Kategori', 'teksno' ),
		'parent_item'                => __( 'Induk Kategori', 'teksno' ),
		'parent_item_colon'          => __( 'Induk Kategori:', 'teksno' ),
		'new_item_name'              => __( 'Tambah Nama Kategori', 'teksno' ),
		'add_new_item'               => __( 'Tambah Kategori Baru', 'teksno' ),
		'edit_item'                  => __( 'Edit Kategori ', 'teksno' ),
		'update_item'                => __( 'Perbarui Kategori', 'teksno' ),
		'view_item'                  => __( 'Lihat Kategori', 'teksno' ),
		'separate_items_with_commas' => __( 'Pisahkan item dengan koma', 'teksno' ),
		'add_or_remove_items'        => __( 'Tambah atau hapus item', 'teksno' ),
		'choose_from_most_used'      => __( 'Pilih dari item yang paling banyak digunakan', 'teksno' ),
		'popular_items'              => __( 'Item Populer', 'teksno' ),
		'search_items'               => __( 'Cari Item', 'teksno' ),
		'not_found'                  => __( 'Tidak Ditemukan', 'teksno' ),
		'no_terms'                   => __( 'Tidak ada item', 'teksno' ),
		'items_list'                 => __( 'Daftar Item', 'teksno' ),
		'items_list_navigation'      => __( 'Daftar navigasi item', 'teksno' ),
	);
	$rewrite = array(
		'slug'                       => 'kategori-bantuan',
		'with_front'                 => true,
		'hierarchical'               => true,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'kategori_bantuan', array( 'bantuan' ), $args );

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