Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Resource Topics

// Register Custom Taxonomy
function ethisphere_taxonomies() {

	$labels = array(
		'name'                       => _x( 'Resource Topics', 'Taxonomy General Name', 'ethisphere' ),
		'singular_name'              => _x( 'Resource Topic', 'Taxonomy Singular Name', 'ethisphere' ),
		'menu_name'                  => __( 'Resource Topics', 'ethisphere' ),
		'all_items'                  => __( 'All Resource Topics', 'ethisphere' ),
		'parent_item'                => __( 'Parent Resource Topic', 'ethisphere' ),
		'parent_item_colon'          => __( 'Parent Resource Topic:', 'ethisphere' ),
		'new_item_name'              => __( 'New Resource Topic', 'ethisphere' ),
		'add_new_item'               => __( 'Add New Resource Topic', 'ethisphere' ),
		'edit_item'                  => __( 'Edit Resource Topic', 'ethisphere' ),
		'update_item'                => __( 'Update Resource Topic', 'ethisphere' ),
		'view_item'                  => __( 'View Resource Topic', 'ethisphere' ),
		'separate_items_with_commas' => __( 'Separate topics with commas', 'ethisphere' ),
		'add_or_remove_items'        => __( 'Add or remove topics', 'ethisphere' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'ethisphere' ),
		'popular_items'              => __( 'Popular Topics', 'ethisphere' ),
		'search_items'               => __( 'Search Topics', 'ethisphere' ),
		'not_found'                  => __( 'Not Found', 'ethisphere' ),
		'no_terms'                   => __( 'No topics', 'ethisphere' ),
		'items_list'                 => __( 'Topics list', 'ethisphere' ),
		'items_list_navigation'      => __( 'Topics list navigation', 'ethisphere' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'show_in_rest'               => true,
	);
	register_taxonomy( 'resource-topic', array( 'resources' ), $args );

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