Hosting Groups
// Register Custom Taxonomy
function hosting_groups() {
$labels = array(
'name' => _x( 'Groups', 'Taxonomy General Name', 'Qaidi_theme' ),
'singular_name' => _x( 'Group', 'Taxonomy Singular Name', 'Qaidi_theme' ),
'menu_name' => __( 'Service Groups', 'Qaidi_theme' ),
'all_items' => __( 'All Groups', 'Qaidi_theme' ),
'parent_item' => __( 'Parent Group', 'Qaidi_theme' ),
'parent_item_colon' => __( 'Parent Group:', 'Qaidi_theme' ),
'new_item_name' => __( 'New Group Name', 'Qaidi_theme' ),
'add_new_item' => __( 'Add New Group', 'Qaidi_theme' ),
'edit_item' => __( 'Edit Group', 'Qaidi_theme' ),
'update_item' => __( 'Update Group', 'Qaidi_theme' ),
'view_item' => __( 'View Group', 'Qaidi_theme' ),
'separate_items_with_commas' => __( 'Separate Groups with commas', 'Qaidi_theme' ),
'add_or_remove_items' => __( 'Add or remove Groups', 'Qaidi_theme' ),
'choose_from_most_used' => __( 'Choose from the most used', 'Qaidi_theme' ),
'popular_items' => __( 'Popular Groups', 'Qaidi_theme' ),
'search_items' => __( 'Search Groups', 'Qaidi_theme' ),
'not_found' => __( 'Not Found', 'Qaidi_theme' ),
'no_terms' => __( 'No Groups', 'Qaidi_theme' ),
'items_list' => __( 'Groups list', 'Qaidi_theme' ),
'items_list_navigation' => __( 'Groups list navigation', 'Qaidi_theme' ),
);
$rewrite = array(
'slug' => 'group',
'with_front' => true,
'hierarchical' => false,
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'query_var' => 'groups',
'rewrite' => $rewrite,
);
register_taxonomy( 'hosting_groups', array( 'hosting_services' ), $args );
}
add_action( 'init', 'hosting_groups', 0 );