-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
term_order not updated #109
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: