Hi, I really can’t understand why, but get_field
(and get_field_object
) returns nothing with some fields.
For example I have a startup_name
field and a project_name
field.
get_field_object('startup_name')
returns the field parameters correctly.
get_field_object('project_name')
returns nothing.
While acf_form()
does work with these fields.
acf_form(array(
post_id' =>'new_post',
fields' => array('startup_name','project_name'),
new_post' => $acf_form['new_post'],
));