WordPress.org

Ready to get started?Download WordPress

Forums

WP_GET_OBJECT_TERMS order by problem (2 posts)

  1. ovedmo
    Member
    Posted 1 year ago #

    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!!

  2. phantomdentist
    Member
    Posted 8 months ago #

    Exactly the same issue!

Topic Closed

This topic has been closed to new replies.

About this Topic