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
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745357525a4624208.html
评论列表(0条)