CPT Expos
Custom shows posts 980
// Register Custom Post Type function exposiciones_cpt() { $labels = array( 'name' => _x( 'Exposiciones', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Exposición', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Exposiciones', 'text_domain' ), 'name_admin_bar' => __( 'Exposiciones', 'text_domain' ), 'archives' => __( 'Listado de exposiciones', 'text_domain' ), 'attributes' => __( 'Item Attributes', 'text_domain' ), 'parent_item_colon' => __( 'Superior', 'text_domain' ), 'all_items' => __( 'Todas las expo', 'text_domain' ), 'add_new_item' => __( 'Añadir una Exposición', 'text_domain' ), 'add_new' => __( 'Añadir nueva', 'text_domain' ), 'new_item' => __( 'Nueva exposición', 'text_domain' ), 'edit_item' => __( 'Editar exposición', 'text_domain' ), 'update_item' => __( 'Actualizar exposiciones', 'text_domain' ), 'view_item' => __( 'Ver exposición', 'text_domain' ), 'view_items' => __( 'Ver expos', 'text_domain' ), 'search_items' => __( 'Buscar expo', 'text_domain' ), 'not_found' => __( 'No hay', 'text_domain' ), 'not_found_in_trash' => __( 'No hay en la papelera', 'text_domain' ), 'featured_image' => __( 'Imagen destacada', 'text_domain' ), 'set_featured_image' => __( 'Establecer imagen destacada', 'text_domain' ), 'remove_featured_image' => __( 'Eliminar imagen destacada', 'text_domain' ), 'use_featured_image' => __( 'Utilizar como imagen destacada', 'text_domain' ), 'insert_into_item' => __( 'Insertar en la Expo', 'text_domain' ), 'uploaded_to_this_item' => __( 'Subido a la expo', 'text_domain' ), 'items_list' => __( 'Lista de Expos', 'text_domain' ), 'items_list_navigation' => __( 'Navegación de la lista de expos', 'text_domain' ), 'filter_items_list' => __( 'Filtrar lista de exposiciones', 'text_domain' ), ); $args = array( 'label' => __( 'Exposición', 'text_domain' ), 'description' => __( 'Exposiciones en la Galería', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions' ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-tickets-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( 'exposiciones', $args ); } add_action( 'init', 'exposiciones_cpt', 0 );