I'm doing a get_terms()
query that I'm trying to order by a custom term meta. The custom term meta key is 'order'
which as a numeric value (between 1 and 10). I have tried the following, but the order doesn't seem to follow the meta value - any pointers is appreciated.
$type_terms = get_terms( 'type', array(
'hide_empty' => false,
array(
'key' => 'order',
),
'orderby' => 'meta_value_num',
'order' => 'ASC',
) );
array('key' => 'order',),
with'meta_key' => 'order',