Taxonomía Gral
Taxomonía Ejempli
if ( ! function_exists( 'custom_genero' ) ) { // Register Custom Taxonomy function custom_genero() { $labels = array( 'name' => _x( 'Géneros', 'Taxonomy General Name', 'custom_genero' ), 'singular_name' => _x( 'Género', 'Taxonomy Singular Name', 'custom_genero' ), 'menu_name' => __( 'Taxonomy', 'custom_genero' ), 'all_items' => __( 'All Items', 'custom_genero' ), 'parent_item' => __( 'Parent Item', 'custom_genero' ), 'parent_item_colon' => __( 'Parent Item:', 'custom_genero' ), 'new_item_name' => __( 'New Item Name', 'custom_genero' ), 'add_new_item' => __( 'Add New Item', 'custom_genero' ), 'edit_item' => __( 'Edit Item', 'custom_genero' ), 'update_item' => __( 'Update Item', 'custom_genero' ), 'view_item' => __( 'View Item', 'custom_genero' ), 'separate_items_with_commas' => __( 'Separate items with commas', 'custom_genero' ), 'add_or_remove_items' => __( 'Add or remove items', 'custom_genero' ), 'choose_from_most_used' => __( 'Choose from the most used', 'custom_genero' ), 'popular_items' => __( 'Popular Items', 'custom_genero' ), 'search_items' => __( 'Search Items', 'custom_genero' ), 'not_found' => __( 'Not Found', 'custom_genero' ), 'no_terms' => __( 'No items', 'custom_genero' ), 'items_list' => __( 'Items list', 'custom_genero' ), 'items_list_navigation' => __( 'Items list navigation', 'custom_genero' ), ); $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( 'generos', array( 'post' ), $args ); } add_action( 'init', 'custom_genero', 0 ); }