vinos
// Register Custom Post Type
function vinos_post_type() {
$labels = array(
'name' => _x( 'vinos', 'Post Type General Name', 'migueltorres' ),
'singular_name' => _x( 'vino', 'Post Type Singular Name', 'migueltorres' ),
'menu_name' => __( 'Vinos', 'migueltorres' ),
'name_admin_bar' => __( 'Vinos', 'migueltorres' ),
'archives' => __( 'Archivo Vinos', 'migueltorres' ),
'parent_item_colon' => __( 'Vino papa', 'migueltorres' ),
'all_items' => __( 'todos los vinos', 'migueltorres' ),
'add_new_item' => __( 'nuevo vino', 'migueltorres' ),
'add_new' => __( 'Agregar Vino', 'migueltorres' ),
'new_item' => __( 'Nuevo Vino', 'migueltorres' ),
'edit_item' => __( 'Editar Vino', 'migueltorres' ),
'update_item' => __( 'Actualizar Vino', 'migueltorres' ),
'view_item' => __( 'Ver Vino', 'migueltorres' ),
'search_items' => __( 'Buscar Vino', 'migueltorres' ),
'not_found' => __( 'No se encontrĂ³ Vino', 'migueltorres' ),
'not_found_in_trash' => __( 'No se encontrĂ³ Vino en papelera', 'migueltorres' ),
'featured_image' => __( 'Imagen representativa', 'migueltorres' ),
'set_featured_image' => __( 'Seleccionar Imagen representativa', 'migueltorres' ),
'remove_featured_image' => __( 'Remover Imagen representativa', 'migueltorres' ),
'use_featured_image' => __( 'Usar Imagen representativa', 'migueltorres' ),
'insert_into_item' => __( 'Insertar en Vino', 'migueltorres' ),
'uploaded_to_this_item' => __( 'Subidos a este Vino', 'migueltorres' ),
'items_list' => __( 'Lista de Vinos', 'migueltorres' ),
'items_list_navigation' => __( 'Navegar Lista de Vinos', 'migueltorres' ),
'filter_items_list' => __( 'Filtro de Lista de Vinos', 'migueltorres' ),
);
$args = array(
'label' => __( 'vino', 'migueltorres' ),
'description' => __( 'Post Type Description', 'migueltorres' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', ),
'taxonomies' => array( 'category', 'post_tag', 'variedad' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-store',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => 'vinos',
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'vino', $args );
}
add_action( 'init', 'vinos_post_type', 0 );