I got stuck with ordering custom taxonomy. I've created a hierarchical custom taxonomy called Brand and created some meta tags including one called position. Now I would like to display my terms ordered by position meta tag. I tried doing this:
<?php $taxonomy = 'brand'; $term_args=array( 'hide_empty' => false, 'orderby' => 'meta_value_num', 'meta_key' => 'position', 'parent' => 0, ); ?> <?php $tax_terms = get_terms($taxonomy, $ <?php foreach ( $tax_terms as $tax_term ) : ?> <h2><?php echo $tax_term->name; ?></h2> <?php endforeach; ?>
But as I can see
get_terms() doesn't support
'orderby' = 'meta_value_num' and terms are ordered by name. Is there any way to display them ordered by position?
Thanks for your help! Patryk