Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Article Section Taxonomy

// Register Custom Taxonomy
function article_section_taxonomy() {

	$labels = array(
		'name'                       => 'Article Sections',
		'singular_name'              => 'Article Section',
		'menu_name'                  => 'Article Section',
		'all_items'                  => 'All Article Sections',
		'parent_item'                => 'Parent Article Section',
		'parent_item_colon'          => 'Parent Article Section:',
		'new_item_name'              => 'New Article Section',
		'add_new_item'               => 'Add Article Section',
		'edit_item'                  => 'Edit Article Section',
		'update_item'                => 'Update Article Section',
		'view_item'                  => 'View Article Section',
		'separate_items_with_commas' => 'Separate items with commas',
		'add_or_remove_items'        => 'Add or remove Article Section',
		'choose_from_most_used'      => 'Choose from the most used',
		'popular_items'              => 'Popular Article Sections',
		'search_items'               => 'Search Article Sections',
		'not_found'                  => 'Not Found',
		'no_terms'                   => 'No Article Sections',
		'items_list'                 => 'Article Sections List',
		'items_list_navigation'      => 'Article Section list navigation',
	);
	$rewrite = array(
		'slug'                       => 'article/section',
		'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,
		'show_in_rest'               => true,
	);
	register_taxonomy( 'article_section', array( 'article' ), $args );

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