Skip to content

term_order not updated #109

Description

@mplusb

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/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions