Noticias
CPT de Noticias
// Register Custom Post Type function noticias_procat() { $labels = array( 'name' => _x( 'Noticias', 'Post Type General Name', 'PROCAT_COSERVATION' ), 'singular_name' => _x( 'Notici', 'Post Type Singular Name', 'PROCAT_COSERVATION' ), 'menu_name' => __( 'Noticias', 'PROCAT_COSERVATION' ), 'name_admin_bar' => __( 'Noticia', 'PROCAT_COSERVATION' ), 'archives' => __( 'Archivo de Noticias', 'PROCAT_COSERVATION' ), 'parent_item_colon' => __( 'Elemento padre', 'PROCAT_COSERVATION' ), 'all_items' => __( 'Todas las Noticias', 'PROCAT_COSERVATION' ), 'add_new_item' => __( 'Añadir Noticia', 'PROCAT_COSERVATION' ), 'add_new' => __( 'Añadir Nueva', 'PROCAT_COSERVATION' ), 'new_item' => __( 'Nueva Noticia', 'PROCAT_COSERVATION' ), 'edit_item' => __( 'Editar Noticia', 'PROCAT_COSERVATION' ), 'update_item' => __( 'Actulizar Noticia', 'PROCAT_COSERVATION' ), 'view_item' => __( 'Ver Noticia', 'PROCAT_COSERVATION' ), 'search_items' => __( 'Buscar Noticia', 'PROCAT_COSERVATION' ), 'not_found' => __( 'No Encontrada', 'PROCAT_COSERVATION' ), 'not_found_in_trash' => __( 'No Encontrada en Papelera', 'PROCAT_COSERVATION' ), 'featured_image' => __( 'Imagen Destacada', 'PROCAT_COSERVATION' ), 'set_featured_image' => __( 'Definir Imagen Personalizada', 'PROCAT_COSERVATION' ), 'remove_featured_image' => __( 'Quitar Imagen Personalizada', 'PROCAT_COSERVATION' ), 'use_featured_image' => __( 'Usar como Imagen Personalizada', 'PROCAT_COSERVATION' ), 'insert_into_item' => __( 'Insertar en la noticia', 'PROCAT_COSERVATION' ), 'uploaded_to_this_item' => __( 'Cargado a esta Noticia', 'PROCAT_COSERVATION' ), 'items_list' => __( 'Lista de Noticias', 'PROCAT_COSERVATION' ), 'items_list_navigation' => __( 'Navegacion Lista de Noticias', 'PROCAT_COSERVATION' ), 'filter_items_list' => __( 'Filtrar Lista de Noticias', 'PROCAT_COSERVATION' ), ); $args = array( 'label' => __( 'Notici', 'PROCAT_COSERVATION' ), 'description' => __( 'Noticas Procat', 'PROCAT_COSERVATION' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-format-aside', '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( 'noticias', $args ); } add_action( 'init', 'noticias_procat', 0 );