how can i add more than one custom taxonomy?

I want to add more than one taxonomy.i tried get_terms( 'CUSTOM_TAXONOMY','CUSTOM_TAXONOMY-2', arra

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
Add a comment  | 

1 Answer 1

Reset to default 0

i fixed

 $terms = get_terms([
    'taxonomy' => array('bank','dovlet_qurumu'),
    'hide_empty' => false,
]); her

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745357525a4624208.html

相关推荐

  • how can i add more than one custom taxonomy?

    I want to add more than one taxonomy.i tried get_terms( 'CUSTOM_TAXONOMY','CUSTOM_TAXONOMY-2', arra

    4小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信