Taxonomia Centro de Examen
// Register Custom Taxonomy
function cux_centro_examen() {
$labels = array(
'name' => _x( 'Centros', 'Taxonomy General Name', 'cux_autoescuela' ),
'singular_name' => _x( 'Centro', 'Taxonomy Singular Name', 'cux_autoescuela' ),
'menu_name' => __( 'Genre', 'cux_autoescuela' ),
'all_items' => __( 'All Genres', 'cux_autoescuela' ),
'parent_item' => __( 'Parent Genre', 'cux_autoescuela' ),
'parent_item_colon' => __( 'Parent Genre:', 'cux_autoescuela' ),
'new_item_name' => __( 'New Genre Name', 'cux_autoescuela' ),
'add_new_item' => __( 'Add New Genre', 'cux_autoescuela' ),
'edit_item' => __( 'Edit Genre', 'cux_autoescuela' ),
'update_item' => __( 'Update Genre', 'cux_autoescuela' ),
'view_item' => __( 'View Item', 'cux_autoescuela' ),
'separate_items_with_commas' => __( 'Separate genres with commas', 'cux_autoescuela' ),
'add_or_remove_items' => __( 'Add or remove genres', 'cux_autoescuela' ),
'choose_from_most_used' => __( 'Choose from the most used genres', 'cux_autoescuela' ),
'popular_items' => __( 'Popular Items', 'cux_autoescuela' ),
'search_items' => __( 'Search genres', 'cux_autoescuela' ),
'not_found' => __( 'Not Found', 'cux_autoescuela' ),
'no_terms' => __( 'No items', 'cux_autoescuela' ),
'items_list' => __( 'Items list', 'cux_autoescuela' ),
'items_list_navigation' => __( 'Items list navigation', 'cux_autoescuela' ),
);
$rewrite = array(
'slug' => 'centro-examen',
'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,
'rewrite' => $rewrite,
);
register_taxonomy( 'centro', array( 'post' ), $args );
}
add_action( 'init', 'cux_centro_examen', 0 );