Service Category Tax
if ( ! function_exists( 'bl_service_categories' ) ) {
// Register Custom Taxonomy
function bl_service_categories() {
$labels = array(
'name' => _x( 'Service Categories', 'Taxonomy General Name', 'blext' ),
'singular_name' => _x( 'Service Category', 'Taxonomy Singular Name', 'blext' ),
'menu_name' => __( 'Service Categories', 'blext' ),
'all_items' => __( 'All Categories', 'blext' ),
'parent_item' => __( 'Parent Category', 'blext' ),
'parent_item_colon' => __( 'Parent Category:', 'blext' ),
'new_item_name' => __( 'New Category', 'blext' ),
'add_new_item' => __( 'Add New Category', 'blext' ),
'edit_item' => __( 'Edit Category', 'blext' ),
'update_item' => __( 'Update Category', 'blext' ),
'view_item' => __( 'View Category', 'blext' ),
'separate_items_with_commas' => __( 'Separate items with commas', 'blext' ),
'add_or_remove_items' => __( 'Add or remove categories', 'blext' ),
'choose_from_most_used' => __( 'Choose from the most used', 'blext' ),
'popular_items' => __( 'Popular Categories', 'blext' ),
'search_items' => __( 'Search Categories', 'blext' ),
'not_found' => __( 'Not Found', 'blext' ),
'no_terms' => __( 'No Categories', 'blext' ),
'items_list' => __( 'Category list', 'blext' ),
'items_list_navigation' => __( 'Category list navigation', 'blext' ),
);
$rewrite = array(
'slug' => 'service-category',
'with_front' => true,
'hierarchical' => false,
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'rewrite' => $rewrite,
);
register_taxonomy( 'bigloop_service_category', array( 'bigloop_service' ), $args );
}
add_action( 'init', 'bl_service_categories', 0 );
}