admin管理员组文章数量:1422077
I want to add more than one taxonomy.
i tried get_terms( 'CUSTOM_TAXONOMY','CUSTOM_TAXONOMY-2', array
but second tax not work
$i = 1;
// get the terms you need
$terms = get_terms( 'CUSTOM_TAXONOMY', array('orderby' => 'count', 'order' => 'DESC', 'hide_empty' => 0 ) );
I want to add more than one taxonomy.
i tried get_terms( 'CUSTOM_TAXONOMY','CUSTOM_TAXONOMY-2', array
but second tax not work
$i = 1;
// get the terms you need
$terms = get_terms( 'CUSTOM_TAXONOMY', array('orderby' => 'count', 'order' => 'DESC', 'hide_empty' => 0 ) );
Share
Improve this question
asked Jun 30, 2019 at 15:26
Ramin MahmudovRamin Mahmudov
511 silver badge12 bronze badges
1 Answer
Reset to default 0i fixed
$terms = get_terms([
'taxonomy' => array('bank','dovlet_qurumu'),
'hide_empty' => false,
]); her
本文标签: how can i add more than one custom taxonomy
版权声明:本文标题:how can i add more than one custom taxonomy? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745357525a2655143.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论