Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Taxonomy – Dunia Masjid

taxonomy untuk content dunia masjid

// Register Custom Taxonomy
function Dunia_Masjid() {

	$labels = array(
		'name'                       => _x( 'Dunia Masjid', 'Taxonomy General Name', 'dunia_masjid' ),
		'singular_name'              => _x( 'Masjid', 'Taxonomy Singular Name', 'dunia_masjid' ),
		'menu_name'                  => __( 'Dunia Masjid', 'dunia_masjid' ),
		'all_items'                  => __( 'Semua Masjid', 'dunia_masjid' ),
		'parent_item'                => __( 'Masjid', 'dunia_masjid' ),
		'parent_item_colon'          => __( 'Masjid:', 'dunia_masjid' ),
		'new_item_name'              => __( 'Tambah Masjid', 'dunia_masjid' ),
		'add_new_item'               => __( 'Tambah Masjid Baru', 'dunia_masjid' ),
		'edit_item'                  => __( 'Edit Masjid', 'dunia_masjid' ),
		'update_item'                => __( 'Update Masjid', 'dunia_masjid' ),
		'separate_items_with_commas' => __( 'Separate items with commas', 'dunia_masjid' ),
		'search_items'               => __( 'Cari Masjid', 'dunia_masjid' ),
		'add_or_remove_items'        => __( 'Tambah atau Buang Masjid', 'dunia_masjid' ),
		'choose_from_most_used'      => __( 'Choose from the most used items', 'dunia_masjid' ),
		'not_found'                  => __( 'Not Found', 'dunia_masjid' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'dunia_masjid', array( 'post' ), $args );

}

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