1.设置-固定链接-选择数字型

2.nginx 开启伪静态

location / { try_files $uri $uri/ /index.php?$args; add_header Access-Control-Allow-Origin "*" always; add_header Access-Control-Allow-Methods 'GET,POST,OPTIONS'; add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization'; } rewrite /wp-admin$ $scheme://$host$uri/ permanent;
3.新标签页打开
1. 进入“网站后台——外观——菜单”页面,点击右上角的“显示选项”;
2.在“显示菜单高级属性”中勾选“链接目标”:
3. 然后菜单结构中的每一项菜单链接会多出“在新窗口或标签页打开链接”选项,勾选前面的小框:
查找的资料
新标签打开 https://www.boke8.net/wordpress-custom-menu-target.html
404 1 https://blog.csdn.net/iastro/article/details/48005645
404 2 https://jingyan.baidu.com/article/215817f7bcdfee1eda1423df.html