Eventos
Eventos para Chimpress
// Register Custom Post Type function cpt_eventos() { $labels = array( 'name' => _x( 'Eventos', 'Post Type General Name', 'chimpress' ), 'singular_name' => _x( 'Evento', 'Post Type Singular Name', 'chimpress' ), 'menu_name' => __( 'Eventos', 'chimpress' ), 'name_admin_bar' => __( 'Eventos', 'chimpress' ), 'parent_item_colon' => __( 'Evento Padre:', 'chimpress' ), 'all_items' => __( 'Todos los Eventos', 'chimpress' ), 'add_new_item' => __( 'Agregar Nuevo Eventos', 'chimpress' ), 'add_new' => __( 'Agregar Nuevo', 'chimpress' ), 'new_item' => __( 'Nuevo Evento', 'chimpress' ), 'edit_item' => __( 'Editar Evento', 'chimpress' ), 'update_item' => __( 'Actualizar Evento', 'chimpress' ), 'view_item' => __( 'Ver Evento', 'chimpress' ), 'search_items' => __( 'Buscar Evento', 'chimpress' ), 'not_found' => __( 'Eventos no encontrados', 'chimpress' ), 'not_found_in_trash' => __( 'Eventos no encontrados en la papelera', 'chimpress' ), ); $args = array( 'label' => __( 'evento', 'chimpress' ), 'description' => __( 'Eventos para Chimpress', 'chimpress' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 20, 'menu_icon' => 'dashicons-clock', '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( 'evento', $args ); } // Hook into the 'init' action add_action( 'init', 'cpt_eventos', 0 );