I am getting "The results could not be loaded" on a taxonomy_advanced select2 field when using a limited user role account (works on administrator):
[
'name' => __( 'Specific methods used', 'your-text-domain' ),
'id' => $prefix . 'academicresearch_methods',
'type' => 'taxonomy_advanced',
'taxonomy' => ['research-methods'],
'field_type' => 'select_advanced',
'placeholder' => __( 'Select a method..', 'your-text-domain' ),
'multiple' => true,
'class' => 'ref_p13-4 ref-label ref-group',
'columns' => 12,
'ajax' => true,
'js_options' => [
'minimumInputLength' => 1,
],
],
When I give my limited-role user all the roles, then it suddenly works again. Is there a user role that is needed for the options to load in a select2 field?