CPT Asociacion – Noticias
Correspondiente a Noticias
// Register Custom Post Type function noticia_custom_type() { $labels = array( 'name' => _x( 'Noticias', 'Post Type General Name', 'custom-valentin' ), 'singular_name' => _x( 'Noticia', 'Post Type Singular Name', 'custom-valentin' ), 'menu_name' => __( 'Noticia', 'custom-valentin' ), 'name_admin_bar' => __( 'Noticia', 'custom-valentin' ), 'archives' => __( 'Archivo Noticias', 'custom-valentin' ), 'attributes' => __( 'Atributo Noticia', 'custom-valentin' ), 'parent_item_colon' => __( 'Noticia Padre', 'custom-valentin' ), 'all_items' => __( 'Todas Las Noticias', 'custom-valentin' ), 'add_new_item' => __( 'Agregar Nueva Noticia', 'custom-valentin' ), 'add_new' => __( 'Agregar Noticia', 'custom-valentin' ), 'new_item' => __( 'Nueva Noticia', 'custom-valentin' ), 'edit_item' => __( 'Editar Noticia', 'custom-valentin' ), 'update_item' => __( 'Actualizar Noticia', 'custom-valentin' ), 'view_item' => __( 'Ver Noticia', 'custom-valentin' ), 'view_items' => __( 'Ver Noticias', 'custom-valentin' ), 'search_items' => __( 'Buscar Noticia', 'custom-valentin' ), 'not_found' => __( 'Noticia No Encontrada', 'custom-valentin' ), 'not_found_in_trash' => __( 'Noticia no encontrada en Papelera', 'custom-valentin' ), 'featured_image' => __( 'Iagen Destacada', 'custom-valentin' ), 'set_featured_image' => __( 'Seleccionar Imagen Destacada', 'custom-valentin' ), 'remove_featured_image' => __( 'Eliminar Imagen Destacada', 'custom-valentin' ), 'use_featured_image' => __( 'Usar como Imagen Destacada', 'custom-valentin' ), 'insert_into_item' => __( 'Insertar en Noticia', 'custom-valentin' ), 'uploaded_to_this_item' => __( 'Subri a Noticia', 'custom-valentin' ), 'items_list' => __( 'Listar Noticias', 'custom-valentin' ), 'items_list_navigation' => __( 'Listar Noticias en Navegador', 'custom-valentin' ), 'filter_items_list' => __( 'Filtrar Noticias', 'custom-valentin' ), ); $rewrite = array( 'slug' => 'noticias', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'Noticia', 'custom-valentin' ), 'description' => __( 'CPT para Entradas del Tipo Noticia', 'custom-valentin' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'comments', 'custom-fields' ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-megaphone', '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' => 'page', ); register_post_type( 'noticia_type', $args ); } add_action( 'init', 'noticia_custom_type', 0 );