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

1 Answer 1

Reset to default 0

i fixed

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

本文标签: how can i add more than one custom taxonomy