Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

C.M. Isotope Gallery Terms

// Register Custom Taxonomy
function create_isotope_gallery_tax() {

	$labels = array(
		'name'                       => _x( 'Universal Sort Terms', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'Universal Sort Term', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'Universal Sort Terms', 'text_domain' ),
		'all_items'                  => __( 'All Universal Sort Terms', 'text_domain' ),
		'parent_item'                => __( 'Parent Universal Sort Term', 'text_domain' ),
		'parent_item_colon'          => __( 'Parent Universal Sort Term:', 'text_domain' ),
		'new_item_name'              => __( 'New Universal Sort Term', 'text_domain' ),
		'add_new_item'               => __( 'Add New Universal Sort Term', 'text_domain' ),
		'edit_item'                  => __( 'Edit Universal Sort Term', 'text_domain' ),
		'update_item'                => __( 'Update Universal Sort Term', 'text_domain' ),
		'view_item'                  => __( 'View Universal Sort Term', 'text_domain' ),
		'separate_items_with_commas' => __( 'Separate terms with commas', 'text_domain' ),
		'add_or_remove_items'        => __( 'Add or remove terms', 'text_domain' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'text_domain' ),
		'popular_items'              => __( 'Popular Universal Sort Terms', 'text_domain' ),
		'search_items'               => __( 'Search Universal Sort Terms', 'text_domain' ),
		'not_found'                  => __( 'Not Found', 'text_domain' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => false,
	);
	register_taxonomy( 'isotope_gallery_tax', array( 'post', ' product' ), $args );

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