我已经花了好几天的时间试图弄清楚这一点,StackOverflow是我最后的选择。我只想要以下内容:
http://www.mydomain.com/my-post-stype/my-top-level-category/my-sub-level-category/my-page.html
对于帖子来说,这非常简单,只需添加/%类别%/%postname%。html作为永久链接就可以做到这一点。然而,对于自定义帖子类型来说,这似乎非常困难。
我有一个注册的post\\u类型project. 和分类法project_category
现在我喜欢我的永久链接变成
/project - Overview of projects in all categories.
/project/CATEGORY - Overview of projects within that category.
/project/CATEGORY/SUBCATEGORY - Overview of projects within that subcategory.
/project/CATEGORY/SUBCATEGORY/postname - The actual post.
也许wp\\U rewrite需要在这里帮助我,但我不知道怎么做。有人能帮我吗?