Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Category Blog

membuat Category Blog baru

// Register Custom Taxonomy
function category_blog() {

	$labels = array(
		'name'                       => 'Blog',
		'singular_name'              => 'Category Blog',
		'menu_name'                  => 'Category Blog',
		'all_items'                  => 'All Category ',
		'parent_item'                => 'Parent Category ',
		'parent_item_colon'          => 'Parent Category :',
		'new_item_name'              => 'New Category Name',
		'add_new_item'               => 'Add New Category ',
		'edit_item'                  => 'Edit Category ',
		'update_item'                => 'Update Category ',
		'separate_items_with_commas' => 'Separate Category with commas',
		'search_items'               => 'Search Category ',
		'add_or_remove_items'        => 'Add or remove Category ',
		'choose_from_most_used'      => 'Choose from the most used Category ',
		'not_found'                  => 'Not Found',
	);
	$rewrite = array(
		'slug'                       => 'blog',
		'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( 'blogs', array( 'blog' ), $args );

}

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