WordPress 自定义帖子类型 &分类重写问题
我在使用自定义帖子类型和 URL 重写时遇到问题分类法。
这是我的实际代码 http://pastebin.com/Q8USd2Tv (我删除了标签等内容)
我想要我的链接是这样的:
概述页面:/base/ 分类法:/base/分类法名称 详细信息页面:/base/taxonomy-name/single-name
您能帮我解决这个问题吗?
谢谢。
I have a problem with URL rewrite with cutom post type & taxonomies.
Here is my actual code http://pastebin.com/Q8USd2Tv (I removed stuff like labels etc.)
I want my link to be like this:
Overview page: /base/
Taxonomy: /base/taxonomy-name
Detail page: /base/taxonomy-name/single-name
Can you please help me with this?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许您的答案是我的一个插件,Taxonomic SEO Permalink。目前 WordPress 支持分类法,但默认情况下无法在永久链接结构中使用自定义分类法。所以我创建了这个插件来帮助我在 URL 中进行自定义分类。
该插件有助于实现与类别类似的自定义分类。最近我添加了支持 url 中子分类的功能。它并不那么完美,但在一定程度上解决了问题。
Maybe your answer is a plugin of mine, Taxonomic SEO Permalink. Currently WordPress supports taxonomies but one is not able to use custom taxonomy in permalink structure by default. So I created this plugin that helped me in having custom taxonomy in URLs.
This plugins helps behave custom taxonomy similar to categories. Recently I added feature that supports sub-taxonomies in url. It's not that perfect but it solves the problem to some extent.