Select advanced & filter by term meta relation 2 taxonomy

Support General Select advanced & filter by term meta relation 2 taxonomy

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40843
    justdoit123justdoit123
    Participant

    Hi, is there any way or hint, example code
    So that i can filter select advanced base on another select advanced field?? I read select2 document but still have no idea how to install to metabox, im newbie

    Example: field select advanced: City A

    When i select City A

    The 2nd select advanced field District will show only all district of City A

    js_options' => array (
    'ajax' => array(
    'url' => admin_url('/admin-ajax.php?action=get_events_list'),
    'dataType' => 'json',
    'type' => 'get',
    'delay' => '250',
    ),
    'minimumInputLength' => 3,
    'allowClear' => true,
    'placeholder' => 'Choose event...'
    ),

    #40844
    justdoit123justdoit123
    Participant

    I'm using taxonomy_advanced for 2 taxonomy when add/edit post

    Now i want to filter select2 taxonony advanced 2 field base on tax advanced fielx 1

    #40848
    PeterPeter
    Moderator

    Hello,

    You can try to use the taxonomy hierarchical and use the field type select_tree or checkbox_tree to display terms under a parent term.
    Please read more on the documentation https://docs.metabox.io/fields/taxonomy-advanced/#settings

    Meta Box does not support displaying the field value based on another field value on "live" like that. You will need to create more custom JavaScript code to accomplish that task.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.