Support » Plugin: Custom Taxonomy Order » Suggestion for term ordering

  • Hi there,

    Thanks for the plugin I just wanted to suggest maybe filter get_terms args to be ordered by term_order if !== to default ‘name’ or adding a global setting as this was causing issues in the admin edit screen.

    add_filter('get_terms_args', function( $args , $tax ){
        if ($tax[0] === 'packages' && $args['order'] === 'name'){
            $args['orderby'] = 'term_order';
        }
        return $args;
    } , 10 , 2);
Viewing 1 replies (of 1 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi, sorry for the slow reply.
    Can you give more information? Whithout this code, which things go wrong on what admin screen?

    I will be happy to consider improvements, but I would like it if I could understand it myself too 🙂

    Regards,
    Marcel

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.