CPT- Casos de éxito
Post del tipo Casos de éxito
// Register Custom Post Type function wellness_success_cases() { $labels = array( 'name' => _x( 'Casos de éxito', 'Post Type General Name', 'flatsome' ), 'singular_name' => _x( 'Caso de éxito', 'Post Type Singular Name', 'flatsome' ), 'menu_name' => __( 'Caso de éxito', 'flatsome' ), 'name_admin_bar' => __( 'Caso éxito', 'flatsome' ), 'parent_item_colon' => __( 'Parent Item:', 'flatsome' ), 'all_items' => __( 'Todos los casos', 'flatsome' ), 'add_new_item' => __( 'Añadir Caso', 'flatsome' ), 'add_new' => __( 'Añadir nuevo', 'flatsome' ), 'new_item' => __( 'Nuevo Caso', 'flatsome' ), 'edit_item' => __( 'Editar Caso', 'flatsome' ), 'update_item' => __( 'Actualizar Caso', 'flatsome' ), 'view_item' => __( 'Ver Caso', 'flatsome' ), 'search_items' => __( 'Buscar Caso', 'flatsome' ), 'not_found' => __( 'No hay nada', 'flatsome' ), 'not_found_in_trash' => __( 'Papelera vacía', 'flatsome' ), ); $args = array( 'label' => __( 'caso_exito', 'flatsome' ), 'description' => __( 'Entradas para los Casos de éxito', 'flatsome' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'custom-fields', 'page-attributes', 'post-formats', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-awards', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'caso_exito', $args ); } // Hook into the 'init' action add_action( 'init', 'wellness_success_cases', 0 );