dongquelu1239 2015-10-30 11:20
浏览 33

删除自定义代码的WordPress URL的类别(页面)基础

The most relevant thread I've found in here is this: Remove category & tag base from WordPress url - without a plugin

I've tried everything in there - from changing the functions.php file to installing the wp-no-category-base plugin. After working with this for hours I believe I understand what's the issue (although I don't have the solution).

I added the following code: https://gist.github.com/morsdyce/9e88db1eba916163cc23

What this code does is pretty straight forward - for every page that I attribute another page to it, it will be considered as a category, plus - it won't be a drop down be have it's own unique lines.

For instance - see the following screen shot: enter image description here

Still, I would like to remove the category from the URL. Bear in mind this is not the category per se but the page (parent).

Any idea how to solve this?

Thanks in advance.

  • 写回答

1条回答 默认 最新

  • douyueqing1530 2015-10-30 12:00
    关注

    Set your permalinks to /%category%/%postname%/ and then put a period/dot into the Category base form(or just change it to something else). It could help.

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度