我有一个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.通过这种方式,类别URL是正确的:
www.example.it/my-category但是帖子网址不是:
www.example/my-category/sample-post为了得到我想要的网址,我可以改变什么?
I have a WordPress blog with posts that has categories, this could be an example of my url:
www.example.itThe url for my post is now:
www.example.it/sample-postThe url for my category list of posts is now:
www.example.it/category/my-categoryI would like my urls like this:
wwww.example.it/sample-post (for posts) www.example.it/my-category (for categories)After googled I founded this solution that I tried:
Go to Setting > Permalinks Select Custom Structure Add /%category%/%postname%/ after your domain Change Category Base to period/dot.In this way the category url is correct:
www.example.it/my-categorybut post url is not:
www.example/my-category/sample-postWhat could I change for get the url like I want?
最满意答案
恢复永久链接,选择“帖子名称”,然后安装此插件。 无需配置,它将替换类别模板的URL中的“类别”一词。
https://wordpress.org/plugins/no-category-parents/
Restore the permalink selecting "Post name" and then install this plugin. No configuration needed, it replaces the word "category" in the url of category template.
https://wordpress.org/plugins/no-category-parents/
更多推荐
发布评论