Panel de Servicios
Panel de Servicios
if ( ! function_exists('post_panel_servicios') ) { // Register Custom Post Type function post_panel_servicios() { $labels = array( 'name' => 'Servicios', 'singular_name' => 'Servicio', 'menu_name' => 'Panel de Servicios', 'name_admin_bar' => 'P Servicios', 'archives' => 'Lista de Servicios', 'attributes' => 'Atributos de Servicios', 'parent_item_colon' => 'Servicio Superior', 'all_items' => 'Todos los servicios', 'add_new_item' => 'Añadir nuevos Servicio', '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 Servicios', 'not_found' => 'No hay servicios', 'not_found_in_trash' => 'No hay servicios en la papelera', 'featured_image' => 'Foto Portada Servicio', 'set_featured_image' => 'Establecer Portada', 'remove_featured_image' => 'Eliminar Portada', 'use_featured_image' => 'Usar Portada servicio', 'insert_into_item' => 'Insertar en servicios', 'uploaded_to_this_item' => 'Subido a servicio', 'items_list' => 'Lista de Servicios', 'items_list_navigation' => 'Navegacion de la lista de Servicios', 'filter_items_list' => 'Filtrar Lista de Servicios', ); $rewrite = array( 'slug' => 'post_type', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $capabilities = array( 'edit_post' => 'edit_post', 'read_post' => 'read_post', 'delete_post' => 'delete_post', 'edit_posts' => 'edit_posts', 'edit_others_posts' => 'edit_others_posts', 'publish_posts' => 'publish_posts', 'read_private_posts' => 'read_private_posts', ); $args = array( 'label' => 'Servicio', 'description' => 'Panel de creacion de Servicios', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions' ), 'taxonomies' => array( 'reiki', 'numerologia', 'chakras' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-portfolio', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => 'servicios', 'exclude_from_search' => true, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capabilities' => $capabilities, ); register_post_type( 'post_type_pservicios', $args ); } add_action( 'init', 'post_panel_servicios', 0 ); }