Skip to content
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

Open
mplusb opened this issue Mar 11, 2021 · 0 comments
Open

term_order not updated #109

mplusb opened this issue Mar 11, 2021 · 0 comments

Comments

@mplusb
Copy link

mplusb commented Mar 11, 2021

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant