
固定鏈接設(shè)置:/%post_id%.html
已經(jīng)重新保存了固定鏈接,但是點(diǎn)擊更多跳轉(zhuǎn)是還是首頁
但是網(wǎng)址是這樣的https://xxxxx/favorites/93.html/

固定鏈接設(shè)置:/%post_id%.html
已經(jīng)重新保存了固定鏈接,但是點(diǎn)擊更多跳轉(zhuǎn)是還是首頁
但是網(wǎng)址是這樣的https://xxxxx/favorites/93.html/
【分類&標(biāo)簽固定鏈接模式】中把設(shè)置改成默認(rèn),重新保存固定鏈接后正常顯示了
【name.html】也是正常顯示
使用【id.html】會(huì)跳轉(zhuǎn)到首頁,然后網(wǎng)址是https://xxxxx/favorites/93.html/ 這種類型
解決方法:
將 inc\redirect-canonical.php 文件里 211 行附近(搜索關(guān)鍵詞“send_headers”)的內(nèi)容修改一下。或者等下次更新。或者用樓上方法。
add_action( 'send_headers', 'io_parse_query_vars',1);
改為
add_action( 'parse_request', 'io_parse_query_vars',1);
