Support » Plugin: WooCommerce » Get terms orderby custom order

  • I want to retrieve all terms (“pa_farve”) – a list of all colors available. However, when I use the following code, the order is not corresponding with the orderby displayed in the backend (product -> attributes -> pa_farve).

    $global_terms = get_terms( 'pa_farve', array(
    	'orderby'    => 'menu_order',
    	'hide_empty' => 0
    ) );

    I’ve tried so many different approaches. Etc. orderby’s; term_order, order, but these dosen’t sort the list correctly either.

    • This topic was modified 4 years, 4 months ago by unicco.
    • This topic was modified 4 years, 4 months ago by unicco.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Get terms orderby custom order’ is closed to new replies.