Taxonomy with select_tree not response to query_args orderby and order

Support General Taxonomy with select_tree not response to query_args orderby and order

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #12546
    JeffersonJefferson
    Participant

    I have a category tree with 3 levels ( category > type > subtype ). In my code I'm declare query arguments to retrieve the terms in alphabetical order. In firts level (category) the rule is applied, but in levels 2 and 3, the rule is not applied.

    
    array(
      'id' => 'category-and-types',
      'type' => 'taxonomy',
      'name' => esc_html__( 'Categoria, Tipo e Subtipo', 'webpesados' ),
      'placeholder'  => esc_html__( 'Selecione', 'webpesados' ),
      'taxonomy' => 'category',
      'query_args' => array(
        'orderby' => 'name',
        'order' => 'ASC',
      ),
     'field_type' => 'select_tree',
     'class' => 'web_select_tree',
     'columns' => 6,
    ),
    
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.