Custom Fields
Re-Envisioned
Support General Taxonomy with select_tree not response to query_args orderby and order

This topic contains 0 replies, has 1 voice, and was last updated by  Jefferson 6 months, 1 week ago.

  • Creator
    Topic
  • #12546

    Jefferson
    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,
    ),
    

You must be logged in to reply to this topic.