You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have SCPO set to order a custom taxonomy product-categories. When I use get_terms() and print_r the result, term_order which is the taxonomy equivalent of menu_order is not set so the order_by doesn’t work.
I have this taxonomy checked in settings and the sorting in admin works, it just doesn’t seem possible to use this in a template.
A perplexing coda, if the argument parent => 0` is set the order is correct.
So get_terms('taxonomy'=> 'product-category', 'parent' => 0) returns the order as fixed by SCPO, get_terms('taxonomy'=> 'product-category') does not.
Just to confirm, with parent => 0 the order is as Admin, with all children the order is term_order.
It is my opinion that the term order should be set by SCPO when reordered in admin.
I have SCPO set to order a custom taxonomy product-categories. When I use get_terms() and print_r the result, term_order which is the taxonomy equivalent of menu_order is not set so the order_by doesn’t work.
I have this taxonomy checked in settings and the sorting in admin works, it just doesn’t seem possible to use this in a template.
A perplexing coda, if the argument parent => 0` is set the order is correct.
So get_terms('taxonomy'=> 'product-category', 'parent' => 0) returns the order as fixed by SCPO, get_terms('taxonomy'=> 'product-category') does not.
Just to confirm, with parent => 0 the order is as Admin, with all children the order is term_order.
It is my opinion that the term order should be set by SCPO when reordered in admin.
https://wordpress.org/support/topic/term_order-not-updated/
The text was updated successfully, but these errors were encountered: