Support

Account

Home Forums Backend Issues (wp-admin) Dynamically Loading Values From Adjacent Fields Reply To: Dynamically Loading Values From Adjacent Fields

  • To be honest, I don’t know why it’s not showing anything as it should be working. try this, possible there’s something in there that’s causing an issue, but I can’t see what it is.

    
    function acf_load_field_choices( $field ) {
      global $post;
      echo '<pre>'; print_r($field); echo '</pre>';
      echo '<pre>'; print_r(get_field('questions', $post->ID); echo '</pre>';
      return $field;
    }
    add_filter('acf/load_field/name=dependency', 'acf_load_field_choices');