所以,我知道这是一个基本的问题,但奇怪的是,它对我不起作用。
我想要的:
- https://example.com/blog/thema/类别名称/postname(用于帖子)
- https://example.com/blog/thema/类别名称(适用于类别)

遗憾的是,这行不通。以下是有关在什么设置下工作的详细信息:
- Posts:
/blog/thema/%category%/%postname%/
+ Category:blog/thema
= 分类工作,帖子获取404Posts:/%category%/%postname%/
+ Category:blog/thema
= 类别工作,职位example.com/categoryname/postname
- Posts:
/thema/%category%/%postname%/
+ Category:blog/thema
= 类别工作,职位example.com/thema/categoryname/postname
- Posts:
/blog/thema/%category%/%postname%/
+ Category:thema
= 职位工作方式example.com/blog/thema/categoryname/postname/
但类别的工作方式如下example.com/thema/categoryname