Shoe brands
Brand taxonomy for simply shoes website
if ( ! function_exists( 'abstract_brands' ) ) {
// Register Custom Taxonomy
function abstract_brands() {
$labels = array(
'name' => _x( 'Brands', 'Taxonomy General Name', 'abstract' ),
'singular_name' => _x( 'Brand', 'Taxonomy Singular Name', 'abstract' ),
'menu_name' => __( 'Brands', 'abstract' ),
'all_items' => __( 'All Brands', 'abstract' ),
'parent_item' => __( 'Parent', 'abstract' ),
'parent_item_colon' => __( 'Parent:', 'abstract' ),
'new_item_name' => __( 'New Brand', 'abstract' ),
'add_new_item' => __( 'Add New Brand', 'abstract' ),
'edit_item' => __( 'Edit Brand', 'abstract' ),
'update_item' => __( 'Update', 'abstract' ),
'view_item' => __( 'View', 'abstract' ),
'separate_items_with_commas' => __( '', 'abstract' ),
'add_or_remove_items' => __( 'Add or Remove Brands', 'abstract' ),
'choose_from_most_used' => __( 'Choose From Most Used', 'abstract' ),
'popular_items' => __( 'Popular Brands', 'abstract' ),
'search_items' => __( 'Search Brands', 'abstract' ),
'not_found' => __( 'Not Found', 'abstract' ),
);
$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( 'brand', array( 'Shoe' ), $args );
}
add_action( 'init', 'abstract_brands', 0 );
}