admin管理员组文章数量:1195902
What I have:
example/movies/{post} <!-- custom Post Type single post, e.g. /movies/batman -->
example/genres/{term} <!-- custom Taxonomy single term e.g. /genres/action -->
What I want:
example/movies/action <!-- custom taxonomy **archive** showing "movie" posts tagged with "action" taxonomy term -->
Is this possible? I have seen lots of questions with very vague answers but I cannot parse the add_rewrite_rule
documentation to figure out whether this is something that can be done.
NOTE: I only have a handful of terms in total, so I could hard-code individual rewrites for each if that is an option — I just cannot figure out how!
This question is more or less a duplicate, but the only non-zero-voted answer is essentially "you can hardcode it but I recommend that you just not do it instead", so I'm hoping someone can actually answer the question of how that would be done…)
本文标签: How to rewrite custom taxonomy term archive to use THE SAME SLUGfront as CPT
版权声明:本文标题:How to rewrite custom taxonomy term archive to use THE SAME SLUGfront as CPT 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738478070a2088980.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论