admin管理员组文章数量:1122832
I’m trying to use one custom taxonomy with different labels for different post types. I have the default “post” post type, and a “podcast” post type. Both post types have an associated Taxonomy with the taxonomy “author” (separate from the Wordpress user who created the post). For “post” type posts, I want to use labels referring to this custom taxonomy as “Author” - “Add Author”, “Back to Authors”, etc. For the “podcast” posts, I want to use labels referring to the taxonomy as “Speakers”. This way, I can pull all the content a given person has been written/featured on into given archives. I know there is the filter “taxonomy_labels_{taxonomy}”, but when I modify the taxonomy’s labels there, it changes the labels for all post types.
Is there a clean way to use one set of labels for one post type, and another set of labels for another post type, while keeping the same slug/underlying taxonomy?
In the absolute worst case, I could make do with using one set of labels for the taxonomy, but this would make it a bit easier for users who are uploading content. The 'brute force' option, I think, would be to use custom meta boxes to set the posts terms, and control the labelling there, but this would not change the labels in the admin editor.
本文标签: One custom taxonomy with unique sets of labels for two post types
版权声明:本文标题:One custom taxonomy with unique sets of labels for two post types? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736310240a1934307.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论