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