Servicios
Yatusabe
if ( ! function_exists('servicios_post_type') ) { // Register Custom Post Type function servicios_post_type() { $labels = array( 'name' => 'Servicios', 'singular_name' => 'Servicio', 'menu_name' => 'Servicios', 'name_admin_bar' => 'Servicio', 'archives' => 'Archivos', 'attributes' => 'Atributos', 'parent_item_colon' => 'Servicio padre', 'all_items' => 'Todos los servicios', 'add_new_item' => 'Agregar nuevo', 'add_new' => 'Añadir nuevo', 'new_item' => 'Nuevo servicio', 'edit_item' => 'Editar servicio', 'update_item' => 'Actualizar servicio', 'view_item' => 'Ver servicio', 'view_items' => 'Ver servicios', 'search_items' => 'Buscar servicio', 'not_found' => 'No se encontró', 'not_found_in_trash' => 'No está en la papelera', 'featured_image' => 'Imagen destacada', 'set_featured_image' => 'Fijar portada', 'remove_featured_image' => 'Remover portada', 'use_featured_image' => 'Usar como portada', 'insert_into_item' => 'Insertar al servicio', 'uploaded_to_this_item' => 'Cargado a este servicio', 'items_list' => 'Items list', 'items_list_navigation' => 'Items list navigation', 'filter_items_list' => 'Filter items list', ); $args = array( 'label' => 'Servicio', 'description' => 'Servicios que ofrecemos', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'page-attributes' ), 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-hammer', '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( 'servicios', $args ); } add_action( 'init', 'servicios_post_type', 0 ); }