Sizes Taxonomy
Taxonomy for sizes
// Register Custom Taxonomy function size_taxonomy() { $labels = array( 'name' => _x( 'Sizes', 'Taxonomy General Name', 'size_domain' ), 'singular_name' => _x( 'Size', 'Taxonomy Singular Name', 'size_domain' ), 'menu_name' => __( 'Size', 'size_domain' ), 'all_items' => __( 'All sizes', 'size_domain' ), 'parent_item' => __( 'Parent size', 'size_domain' ), 'parent_item_colon' => __( 'Parent size:', 'size_domain' ), 'new_item_name' => __( 'New size Name', 'size_domain' ), 'add_new_item' => __( 'Add New size', 'size_domain' ), 'edit_item' => __( 'Edit size', 'size_domain' ), 'update_item' => __( 'Update size', 'size_domain' ), 'view_item' => __( 'View size', 'size_domain' ), 'separate_items_with_commas' => __( 'Separate sizes with commas', 'size_domain' ), 'add_or_remove_items' => __( 'Add or remove sizes', 'size_domain' ), 'choose_from_most_used' => __( 'Choose from the most used', 'size_domain' ), 'popular_items' => __( 'Popular sizes', 'size_domain' ), 'search_items' => __( 'Search sizes', 'size_domain' ), 'not_found' => __( 'Not Found', 'size_domain' ), 'no_terms' => __( 'No sizes', 'size_domain' ), 'items_list' => __( 'sizes list', 'size_domain' ), 'items_list_navigation' => __( 'sizes list navigation', 'size_domain' ), ); $args = array( 'labels' => $labels, 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, ); register_taxonomy( 'size', array( 'post', 'page' ), $args ); } add_action( 'init', 'size_taxonomy', 0 );