CPT testimonios
CPT de Testimonios
if ( ! function_exists('LCM_Testimonios') ) { // Register Custom Post Type function LCM_Testimonios() { $labels = array( 'name' => _x( 'Testimonios', 'Post Type General Name', 'LCM_Testimonios' ), 'singular_name' => _x( 'Testimonio', 'Post Type Singular Name', 'LCM_Testimonios' ), 'menu_name' => __( 'Testimonios', 'LCM_Testimonios' ), 'name_admin_bar' => __( 'Testimonios', 'LCM_Testimonios' ), 'archives' => __( 'Archivo de Testimonios', 'LCM_Testimonios' ), 'attributes' => __( 'Atributos', 'LCM_Testimonios' ), 'parent_item_colon' => __( 'Testimonio Padre', 'LCM_Testimonios' ), 'all_items' => __( 'Todos los Testimonios', 'LCM_Testimonios' ), 'add_new_item' => __( 'Agregar nuevo Testimonio', 'LCM_Testimonios' ), 'add_new' => __( 'Agregar nuevo Testimonio', 'LCM_Testimonios' ), 'new_item' => __( 'Nuevo Testimonio', 'LCM_Testimonios' ), 'edit_item' => __( 'Editar Testimonio', 'LCM_Testimonios' ), 'update_item' => __( 'Descargar Testimonio', 'LCM_Testimonios' ), 'view_item' => __( 'Ver Testimonio', 'LCM_Testimonios' ), 'view_items' => __( 'Ver Testimonios', 'LCM_Testimonios' ), 'search_items' => __( 'Buscar Testimonio', 'LCM_Testimonios' ), 'not_found' => __( 'Testimonio no encontrado', 'LCM_Testimonios' ), 'not_found_in_trash' => __( 'Testimonio no encontrado en papelera', 'LCM_Testimonios' ), 'featured_image' => __( 'Imagen principal', 'LCM_Testimonios' ), 'set_featured_image' => __( 'Conjunto de imágenes principales', 'LCM_Testimonios' ), 'remove_featured_image' => __( 'Quitar imagen principal', 'LCM_Testimonios' ), 'use_featured_image' => __( 'Usar como imagen principal', 'LCM_Testimonios' ), 'insert_into_item' => __( 'Insertar en el Testimonio', 'LCM_Testimonios' ), 'uploaded_to_this_item' => __( 'Incluir en este Testimonio', 'LCM_Testimonios' ), 'items_list' => __( 'Lista de Testimonios', 'LCM_Testimonios' ), 'items_list_navigation' => __( 'Lista de navegación de Testimonios', 'LCM_Testimonios' ), 'filter_items_list' => __( 'Filtrar lista de Testimonios', 'LCM_Testimonios' ), ); $rewrite = array( 'slug' => 'testimonios', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'Testimonio', 'LCM_Testimonios' ), 'description' => __( 'CPT de Testimonios', 'LCM_Testimonios' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions' ), 'taxonomies' => array( 'category' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-groups', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'post', ); register_post_type( 'lcm_Testimonios', $args ); } add_action( 'init', 'LCM_Testimonios', 0 ); }