// Register Custom Post Type function registerCustomPostReviews() { $labels = array( 'name' => _x( 'Reseñas', 'Post Type General Name', 'dobuss' ), 'singular_name' => _x( 'Reseña', 'Post Type Singular Name', 'dobuss' ), 'menu_name' => __( 'Reseñas', 'dobuss' ), 'name_admin_bar' => __( 'Reseñas', 'dobuss' ), 'archives' => __( 'Archivo', 'dobuss' ), 'attributes' => __( 'Atributos', 'dobuss' ), 'parent_item_colon' => __( 'Padre', 'dobuss' ), 'all_items' => __( 'Todos', 'dobuss' ), 'add_new_item' => __( 'Añadir nuevo', 'dobuss' ), 'add_new' => __( 'Añadir', 'dobuss' ), 'new_item' => __( 'Nuevo', 'dobuss' ), 'edit_item' => __( 'Editar', 'dobuss' ), 'update_item' => __( 'Actualizar', 'dobuss' ), 'view_item' => __( 'Ver', 'dobuss' ), 'view_items' => __( 'Ver', 'dobuss' ), 'search_items' => __( 'Buscar', 'dobuss' ), 'not_found' => __( 'No encontrado', 'dobuss' ), 'not_found_in_trash' => __( 'Papelera vacía', 'dobuss' ), 'featured_image' => __( 'Imagen destacada', 'dobuss' ), 'set_featured_image' => __( 'Establecer imagen destacada', 'dobuss' ), 'remove_featured_image' => __( 'Eliminar imagen destacada', 'dobuss' ), 'use_featured_image' => __( 'Usar como imagen destacada', 'dobuss' ), 'insert_into_item' => __( 'Insertar', 'dobuss' ), 'uploaded_to_this_item' => __( 'Actualizar', 'dobuss' ), 'items_list' => __( 'Lista', 'dobuss' ), 'items_list_navigation' => __( 'Lista denavegación', 'dobuss' ), 'filter_items_list' => __( 'Filtro', 'dobuss' ), ); $args = array( 'label' => __( 'Reseña', 'dobuss' ), 'description' => __( 'Reseñas de clientes', 'dobuss' ), 'labels' => $labels, 'supports' => array( 'title', 'thumbnail' ), 'taxonomies' => array( 'reviewService' ), 'hierarchical' => false, 'public' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'testimonial', 'show_in_admin_bar' => true, 'show_in_nav_menus' => false, 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => true, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'review', $args ); } add_action( 'init', 'registerCustomPostReviews', 0 );