How to sort by number

Question

I have to sort my results by number:

<ul>
 <?php $productTerms = get_terms('prezzoceste', array('hide_empty' => 0, 'orderby' => 'ASC', 'meta_type' => 'NUMERIC', ));
foreach($productTerms as $productTerm) :
?>
<li>
<i class="fas fa-circle"></i>
<a href="<?php echo get_term_link( $productTerm->slug, $productTerm->taxonomy ); ?>"><?php echo $productTerm->name; ?> <span>(<?php echo $productTerm->count; ?>)</span></a>
</li>
<?php endforeach; ?>
</ul>

enter image description here

0
AndreaLB 2 months 0 Answers 10 views 0

Leave an answer