众所周知,WordPress类别页面中有一个前缀[category],并且有许多插件可以删除该前缀。 WordPress不允许您为类别添加空白前缀(它们在名称前面插入类别)。
但我想知道为什么WordPress本身不删除该前缀?有什么难以做到的吗? 删除前缀是否有任何重要影响?我的英语很差,我希望自己能说清楚。
我不想使用Yoast推荐的以下插件
The Top Level Categories plugin allows you to remove the prefix before the URL to your category page. For example, instead of http://example.com/category/work, you can use http://example.com/work for the address of "work" category. WordPress doesn't allow you to have a blank prefix for categories (they insert category/ before the name), this plugin works around that restriction.
答案 0 :(得分:0)
您可以从管理面板更改固定链接设置。
转到设置/永久链接并添加类别库'。'删除' / category'来自网址。
请参见屏幕截图..