我想添加多个分类法<我试过了get_terms( \'CUSTOM_TAXONOMY\',\'CUSTOM_TAXONOMY-2\', array
但第二税不起作用
$i = 1;
// get the terms you need
$terms = get_terms( \'CUSTOM_TAXONOMY\', array(\'orderby\' => \'count\', \'order\' => \'DESC\', \'hide_empty\' => 0 ) );
最合适的回答,由SO网友:Ramin Mahmudov 整理而成
i fixed
$terms = get_terms([
\'taxonomy\' => array(\'bank\',\'dovlet_qurumu\'),
\'hide_empty\' => false,
]); her