iaa.ro – badge
// Register Custom Taxonomy
function custom_taxonomy() {
$labels = array(
'name' => _x( 'Badges', 'Taxonomy General Name', 'zatheme' ),
'singular_name' => _x( 'Badge', 'Taxonomy Singular Name', 'zatheme' ),
'menu_name' => __( 'Badges', 'zatheme' ),
'all_items' => __( 'All Badges', 'zatheme' ),
'parent_item' => __( 'Parent Badge', 'zatheme' ),
'parent_item_colon' => __( 'Parent Badge:', 'zatheme' ),
'new_item_name' => __( 'New Badge Name', 'zatheme' ),
'add_new_item' => __( 'Add New Badge', 'zatheme' ),
'edit_item' => __( 'Edit Badge', 'zatheme' ),
'update_item' => __( 'Update Badge', 'zatheme' ),
'view_item' => __( 'View Badge', 'zatheme' ),
'separate_items_with_commas' => __( 'Separate badges with commas', 'zatheme' ),
'add_or_remove_items' => __( 'Add or remove badges', 'zatheme' ),
'choose_from_most_used' => __( 'Choose from the most used', 'zatheme' ),
'popular_items' => __( 'Popular Badges', 'zatheme' ),
'search_items' => __( 'Search Badges', 'zatheme' ),
'not_found' => __( 'Not Found', 'zatheme' ),
'no_terms' => __( 'No badges', 'zatheme' ),
'items_list' => __( 'Badges list', 'zatheme' ),
'items_list_navigation' => __( 'Badges list navigation', 'zatheme' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
);
register_taxonomy( 'post_badge', array( 'post' ), $args );
}
add_action( 'init', 'custom_taxonomy', 0 );