WP_GET_OBJECT_TERMS order by problem
-
When i try to use
$args=array('orderby'=>'term_order', 'order' => 'ASC'); $product_terms = wp_get_object_terms(get_the_ID(), 'category',$args);
when using DESC / ASC it return the same results.
but when using ‘orderby’=>’term_id’ it work perfect and return the right order!!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘WP_GET_OBJECT_TERMS order by problem’ is closed to new replies.