Agenda / Eventos
CPT for Juanita Fernandez site.
// Register Custom Post Type function eventos_post_type() { $labels = array( 'name' => _x( 'Eventos', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Evento', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Agenda', 'text_domain' ), 'name_admin_bar' => __( 'Agenda', 'text_domain' ), 'parent_item_colon' => __( 'Eventos:', 'text_domain' ), 'all_items' => __( 'Todos los Eventos', 'text_domain' ), 'add_new_item' => __( 'Añadir Evento', 'text_domain' ), 'add_new' => __( 'Agregar Evento nuevo', 'text_domain' ), 'new_item' => __( 'Nuevo Evento', 'text_domain' ), 'edit_item' => __( 'Editar Evento', 'text_domain' ), 'update_item' => __( 'Actualizar Evento', 'text_domain' ), 'view_item' => __( 'Ver Evento', 'text_domain' ), 'search_items' => __( 'Buscar Evento', 'text_domain' ), 'not_found' => __( 'No encontrado', 'text_domain' ), 'not_found_in_trash' => __( 'No encontrado en la papelera', 'text_domain' ), ); $args = array( 'label' => __( 'eventos', 'text_domain' ), 'description' => __( 'Eventos para listar en la Agenda', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-calendar-alt', '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' => 'page', ); register_post_type( 'eventos', $args ); } // Hook into the 'init' action add_action( 'init', 'eventos_post_type', 0 );