products_taxonomy
products_taxonomy
// Register Custom Taxonomy function bestel_products_archive() { $labels = array( 'name' => _x( 'Product Categories', 'Taxonomy General Name', 'bestel' ), 'singular_name' => _x( 'Product Category', 'Taxonomy Singular Name', 'bestel' ), 'menu_name' => __( 'Product Categories', 'bestel' ), 'all_items' => __( 'All Product Categories', 'bestel' ), 'parent_item' => __( 'Parent Product Category', 'bestel' ), 'parent_item_colon' => __( 'Parent Product Category:', 'bestel' ), 'new_item_name' => __( 'New Product Name', 'bestel' ), 'add_new_item' => __( 'Add New Product Category', 'bestel' ), 'edit_item' => __( 'Edit Product Category', 'bestel' ), 'update_item' => __( 'Update Product Category', 'bestel' ), 'separate_items_with_commas' => __( 'Separate Product Categories with commas', 'bestel' ), 'search_items' => __( 'Search Product Categories', 'bestel' ), 'add_or_remove_items' => __( 'Add or remove Product Categories', 'bestel' ), 'choose_from_most_used' => __( 'Choose from the most used Product Categories', 'bestel' ), 'not_found' => __( 'Not Found', 'bestel' ), ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, ); register_taxonomy( 'products_archive', array( 'bes_products' ), $args ); } // Hook into the 'init' action add_action( 'init', 'bestel_products_archive', 0 );