Post-Type en Español
// Register Custom Post Type
function custom_post_type() {
$labels = array(
'name' => _x( 'Proyectos', 'Post Type General Name', 'cc' ),
'singular_name' => _x( 'Proyecto', 'Post Type Singular Name', 'cc' ),
'menu_name' => __( 'Proyectos', 'cc' ),
'name_admin_bar' => __( 'Proyectos', 'cc' ),
'archives' => __( 'Archivo', 'cc' ),
'attributes' => __( '', 'cc' ),
'parent_item_colon' => __( '', 'cc' ),
'all_items' => __( 'Todos los items', 'cc' ),
'add_new_item' => __( 'Agregar nuevo', 'cc' ),
'add_new' => __( 'Agregar Item', 'cc' ),
'new_item' => __( 'Nuevo Item', 'cc' ),
'edit_item' => __( 'Editar Item', 'cc' ),
'update_item' => __( 'Actualizar Item', 'cc' ),
'view_item' => __( 'Ver Item', 'cc' ),
'view_items' => __( 'Ver Items', 'cc' ),
'search_items' => __( 'Buscar Item', 'cc' ),
'not_found' => __( 'No encontrado', 'cc' ),
'not_found_in_trash' => __( 'No encontrado en Papelera', 'cc' ),
'featured_image' => __( 'Imagen destacada', 'cc' ),
'set_featured_image' => __( 'Setear Imagen Destacada', 'cc' ),
'remove_featured_image' => __( 'Remover Imagen Detacada', 'cc' ),
'use_featured_image' => __( 'Usar como Imagen Destacada', 'cc' ),
'insert_into_item' => __( 'Insertar en el Item', 'cc' ),
'uploaded_to_this_item' => __( 'Subir a este Item', 'cc' ),
'items_list' => __( 'Lista de items', 'cc' ),
'items_list_navigation' => __( 'Navegación de Lista de Items', 'cc' ),
'filter_items_list' => __( 'Filtros del Item', 'cc' ),
);
$args = array(
'label' => __( 'Proyecto', 'cc' ),
'description' => __( 'Post Type Description', 'cc' ),
'labels' => $labels,
'supports' => array( 'title', 'editor' ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'post',
);
register_post_type( 'proyecto', $args );
}
add_action( 'init', 'custom_post_type', 0 );