在数据库里面修改文章ID,不小心输错文章ID号了,代码如下
update wp_posts set id = 3017 where id = 460;
update wp_term_relationships set object_id = 3017 where object_id = 460;
update wp_postmeta set post_id = 3017 where post_id = 460;
update wp_comments set comment_post_ID = 3017 where comment_post_ID = 460;
本来文章ID是469,我要改成3017,结果文章ID写错了,把469写成460了,现在打开文章的域名变成https://xxxx.com/?attachment_id=3017,页面是空白。
(我的设置的固定连接是/%post_id%.html)