Juegos TIC-80
Juegos de TIC-80
// Register Custom Post Type function tic80game_post_type() { $labels = array( 'name' => _x( 'Juegos TIC-80', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Juego TIC-80', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Juegos TIC-80', 'text_domain' ), 'name_admin_bar' => __( 'Juego TIC-80', 'text_domain' ), 'archives' => __( 'Juegos TIC-80', 'text_domain' ), 'attributes' => __( 'Atributos del juego', 'text_domain' ), 'parent_item_colon' => __( 'Juego TIC-80 principal', 'text_domain' ), 'all_items' => __( 'Todos los juegos TIC-80', 'text_domain' ), 'add_new_item' => __( 'Agregar nuevo Juego TIC-80', 'text_domain' ), 'add_new' => __( 'Agregar nuevo juego', 'text_domain' ), 'new_item' => __( 'Nuevo Juego', 'text_domain' ), 'edit_item' => __( 'Editar Juego', 'text_domain' ), 'update_item' => __( 'Actualizar Juego', 'text_domain' ), 'view_item' => __( 'Ver Juego', 'text_domain' ), 'view_items' => __( 'Ver Juegos', 'text_domain' ), 'search_items' => __( 'Buscar Juegos', 'text_domain' ), 'not_found' => __( 'Juego no encontrado', 'text_domain' ), 'not_found_in_trash' => __( 'Juego no encontrado en la papelera', 'text_domain' ), 'featured_image' => __( 'Imagen principal', 'text_domain' ), 'set_featured_image' => __( 'Establecer imagen destacada', 'text_domain' ), 'remove_featured_image' => __( 'Remover imagen destacada', 'text_domain' ), 'use_featured_image' => __( 'Usar como imagen destacada', 'text_domain' ), 'insert_into_item' => __( 'Insertar en el Juego', 'text_domain' ), 'uploaded_to_this_item' => __( 'Subir a este juego', 'text_domain' ), 'items_list' => __( 'Lista de juegos TIC-80', 'text_domain' ), 'items_list_navigation' => __( 'Navegar por lista deJuegos TIC-80', 'text_domain' ), 'filter_items_list' => __( 'Filtro de Juegos TIC-80', 'text_domain' ), ); $rewrite = array( 'slug' => 'juego', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'Juego TIC-80', 'text_domain' ), 'description' => __( 'Juegos de TIC-80', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'comments', 'revisions' ), 'taxonomies' => array( 'post_tag' ), 'hierarchical' => false, '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' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'tic80games', $args ); } add_action( 'init', 'tic80game_post_type', 0 );