Skip to content

Why does the plugin does not order terms in get_terms_orderby hook in admin? #58

@gavin310

Description

@gavin310

(I also posted this on the WordPress support forum but it looks like that forum isn't maintained anymore)

The plugin hooks into the get_terms_orderby filter using the hicpo_get_terms_orderby function. In this function, the first line is if ( is_admin() ) return $orderby;. This prevents the terms from showing in the customized order in the admin listing. If I change the first line to if ( is_admin() ) return 't.term_order'; then it works as expected. What is the reason for not showing terms in the custom order in the admin area?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions