// Register Custom Post Type function manga_custom_post_type() { $labels = array( 'name' => _x( 'mangas', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'manga', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'mangas', 'text_domain' ), 'name_admin_bar' => __( 'manga', 'text_domain' ), 'archives' => __( 'archivos del manga', 'text_domain' ), 'attributes' => __( 'atributos del manga', 'text_domain' ), 'parent_item_colon' => __( 'post padre:', 'text_domain' ), 'all_items' => __( 'todos los mangas', 'text_domain' ), 'add_new_item' => __( 'añadir nuevo manga', 'text_domain' ), 'add_new' => __( 'añadir nuevo', 'text_domain' ), 'new_item' => __( 'nuevo manga', 'text_domain' ), 'edit_item' => __( 'editar manga', 'text_domain' ), 'update_item' => __( 'actualizar manga', 'text_domain' ), 'view_item' => __( 'ver manga', 'text_domain' ), 'view_items' => __( 'ver seres', 'text_domain' ), 'search_items' => __( 'buscar manga', 'text_domain' ), 'not_found' => __( 'no encontrado', 'text_domain' ), 'not_found_in_trash' => __( 'no encontrado en la papelera', 'text_domain' ), 'featured_image' => __( 'imagen destacada', 'text_domain' ), 'set_featured_image' => __( 'configurar imagen destacada', 'text_domain' ), 'remove_featured_image' => __( 'eliminar imagen destacada', 'text_domain' ), 'use_featured_image' => __( 'usar como imagen destacada', 'text_domain' ), 'insert_into_item' => __( 'insertar en manga', 'text_domain' ), 'uploaded_to_this_item' => __( 'aztualizar el manga', 'text_domain' ), 'items_list' => __( 'lista de maga', 'text_domain' ), 'items_list_navigation' => __( 'lista de navegación de mangas', 'text_domain' ), 'filter_items_list' => __( 'lista de filtro de mangas', 'text_domain' ), ); $args = array( 'label' => __( 'manga', 'text_domain' ), 'description' => __( 'descripcion del manga', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'comments', 'custom-fields', 'page-attributes', 'post-formats' ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => true, 'publicly_queryable' => true, 'capability_type' => 'page', 'show_in_rest' => true, ); register_post_type( 'cpt_manga', $args ); } add_action( 'init', 'manga_custom_post_type', 0 );