I try to show on frontent a form, based on a ACF fields group, but I want to show only one fields of this group.
My code:
<?php
acf_form(array(
‘field_groups’ => array(’31’),
‘fields’ => array(‘field_55fbd2ec6359f’)
));
?>
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in Z:\home\localhost\www\307-18\068-wp-brief\wp-content\plugins\advanced-custom-fields\core\api.php on line 1185
Option ‘fields’ is not ready. Why?
Version 4 of ACF does not include the options for specifying individual fields. That option is only available for ACF 5 (Pro) at this time. https://www.advancedcustomfields.com/resources/acf_form/?version=4.
In ACF 4 the only way to accomplish this would be to have a field group with only the single field that you want to have in the form.