【更多】按钮点击后跳转的是首页

kop BUG反馈 231

QQ截图20221111045824

固定链接设置:/%post_id%.html

已经重新保存了固定链接,但是点击更多跳转是还是首页

但是网址是这样的https://xxxxx/favorites/93.html/

回复

共2条回复 我来回复
  • kop
    kop 评论

    【分类&标签固定链接模式】中把设置改成默认,重新保存固定链接后正常显示了

    【name.html】也是正常显示

    使用【id.html】会跳转到首页,然后网址是https://xxxxx/favorites/93.html/ 这种类型

    1年前 0条评论
  • 一为
    一为 评论

    解决方法:

    将 inc\redirect-canonical.php 文件里 211 行附近(搜索关键词“send_headers”)的内容修改一下。或者等下次更新。或者用楼上方法。

     add_action( 'send_headers', 'io_parse_query_vars',1);

    改为

     add_action( 'parse_request', 'io_parse_query_vars',1);
    1年前 0条评论
One Nav 导航主题