Title: WP_GET_OBJECT_TERMS order by problem
Last modified: August 20, 2016

---

# WP_GET_OBJECT_TERMS order by problem

 *  [ovedmo](https://wordpress.org/support/users/ovedmo/)
 * (@ovedmo)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/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)

 *  [phantomdentist](https://wordpress.org/support/users/phantomdentist/)
 * (@phantomdentist)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/wp_get_object_terms-order-by-problem/#post-3269830)
 * Exactly the same issue!

Viewing 1 replies (of 1 total)

The topic ‘WP_GET_OBJECT_TERMS order by problem’ is closed to new replies.

## Tags

 * [orderby](https://wordpress.org/support/topic-tag/orderby/)
 * [term_order](https://wordpress.org/support/topic-tag/term_order/)
 * [wp_get_object_terms](https://wordpress.org/support/topic-tag/wp_get_object_terms/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [phantomdentist](https://wordpress.org/support/users/phantomdentist/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/wp_get_object_terms-order-by-problem/#post-3269830)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
