admin管理员组文章数量:1327308
I have list of products and associated product categories. I like to clone same terms and their hierarchy along with product association to a newly created custom taxonomy.
I have list of products and associated product categories. I like to clone same terms and their hierarchy along with product association to a newly created custom taxonomy.
Share Improve this question asked Aug 7, 2020 at 12:14 MMKMMK 5384 silver badges11 bronze badges1 Answer
Reset to default 0Could you not just keep the same taxonomy and declare it on both CPTs?? That way both would inherit the same terms, at the same IDs, which would allow you to get posts from both CPTs if required.
At your CPT creation, you can tell it which Taxonomies to use by setting a parameter of:
'taxonomies' => [ 'your-tax-slug' ],
本文标签: Clone Terms of one taxonomy to another
版权声明:本文标题:Clone Terms of one taxonomy to another 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742204330a2432534.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论