Support

Account

Home Forums Front-end Issues Select2 not pulling saved values on MultiSite Reply To: Select2 not pulling saved values on MultiSite

  • Here’s some more info I’ve found. So to my knowledge the php hook that occurs right before field render is acf/prepare_field. Dumping the field shows that the value is present. Now the big question is, why isn’t it making it into the select2 jQuery object, and what handles the creation of that piece?

    array (size=31)
      'ID' => int 0
      'key' => string 'field_59e61ff30ff19_field_5c2d0d1860d0f' (length=39)
      'label' => string 'Select People Type' (length=18)
      'name' => string 'acf[field_5953fae740968][0][field_59e61ff30ff19_field_5c2d0d1860d0f]' (length=68)
      'prefix' => string 'acf[field_5953fae740968][0]' (length=27)
      'type' => string 'taxonomy' (length=8)
      'value' => int 123
      'menu_order' => int 5
      'instructions' => string '' (length=0)
      'required' => int 0
      'id' => string '' (length=0)
      'class' => string '' (length=0)
      'conditional_logic' => 
        array (size=1)
          0 => 
            array (size=1)
              0 => 
                array (size=3)
                  ...
      'parent' => string 'field_5953fae740968' (length=19)
      'wrapper' => 
        array (size=3)
          'width' => string '' (length=0)
          'class' => string '' (length=0)
          'id' => string '' (length=0)
      '_name' => string 'peopletype_taxonomy_list' (length=24)
      '_prepare' => int 1
      '_valid' => int 1
      'taxonomy' => string 'furman-person-type' (length=18)
      'field_type' => string 'select' (length=6)
      'allow_null' => int 0
      'add_term' => int 1
      'save_terms' => int 0
      'load_terms' => int 0
      'return_format' => string 'id' (length=2)
      'multiple' => int 0
      '_clone' => string 'field_59e61ff30ff19' (length=19)
      'parent_layout' => string '59e61fe0a4879' (length=13)
      '__key' => string 'field_5c2d0d1860d0f' (length=19)
      '__name' => string 'peopletype_taxonomy_list' (length=24)
      '__label' => string 'Select People Type' (length=18)