Unfortunately, the last version is still not working :
Field failed to render: Argument 2 passed to Redux_WordPress_Data::get_current_data_args() must be of the type array, string given, called in [...]plugins/redux-framework/redux-core/inc/classes/class-redux-wordpress-data.php on line 88
The related field is a callback which returns an array :
$fields[] = array(
'id' => 'propertyOffer_' . $k,
'type' => 'select',
'title' => $v,
'data' => 'callback',
'args' => 'ts_immo_settings_import_property_offers',
);
The first time I save the form, I get an empty selection in my select box and the options are well filled. However, once I save the field, I get the error above.
Note: it works if I use a multi=true
-
This reply was modified 3 years, 7 months ago by
tsimmo.