services_taxonomy
services_taxonomy
// Register Custom Taxonomy function bestel_services_archive() { $labels = array( 'name' => _x( 'Service Categories', 'Taxonomy General Name', 'bestel' ), 'singular_name' => _x( 'Service Category', 'Taxonomy Singular Name', 'bestel' ), 'menu_name' => __( 'Service Categories', 'bestel' ), 'all_items' => __( 'All Service Categories', 'bestel' ), 'parent_item' => __( 'Parent Service Category', 'bestel' ), 'parent_item_colon' => __( 'Parent Service Category:', 'bestel' ), 'new_item_name' => __( 'New Service Name', 'bestel' ), 'add_new_item' => __( 'Add New Service Category', 'bestel' ), 'edit_item' => __( 'Edit Service Category', 'bestel' ), 'update_item' => __( 'Update Service Category', 'bestel' ), 'separate_items_with_commas' => __( 'Separate Service Categories with commas', 'bestel' ), 'search_items' => __( 'Search Service Categories', 'bestel' ), 'add_or_remove_items' => __( 'Add or remove Service Categories', 'bestel' ), 'choose_from_most_used' => __( 'Choose from the most used Service 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( 'services_archive', array( 'bes_services' ), $args ); } // Hook into the 'init' action add_action( 'init', 'bestel_services_archive', 0 );