删除类别
问题描述:
我有帖子说有类别一个WordPress博客,这可能是我的网址的例子:删除类别
www.example.it
我的文章的网址现在是:
www.example.it/sample-post
对于帖子我的类别列表中的网址是现在:
www.example.it/category/my-category
我想我的网址是这样的:
wwww.example.it/sample-post (for posts)
www.example.it/my-category (for categories)
后一派我创办这个解决方案,我想:
Go to Setting > Permalinks
Select Custom Structure
Add /%category%/%postname%/ after your domain
Change Category Base to period/dot.
这样的类网址是否正确:
www.example.it/my-category
但帖子的网址是不是:
www.example/my-category/sample-post
我可以改变什么来获取我想要的网址?
答
恢复选择“发布名称”的固定链接,然后安装此插件。它不需要配置,它将替换类别模板的URL中的单词“类别”。
答
从您的永久链接结构删除%category%
并安装Remove Category URL插件。
+0
我试过了,它确实做了我所做的。它正确修改类别的URL,但它也修改后发布URL(我不想这) – aletede91
如果我选择“后名称为”我的URL类别将是“www.example.it/category/my-category”,而不是“www.example.it/my-category”这就是我真的想 – aletede91