Support

Account

Home Forums Bug Reports get_field (& get_field_object) randomly not working

Unread

get_field (& get_field_object) randomly not working

  • 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'],
          ));
    
Viewing 1 post (of 1 total)

The topic ‘get_field (& get_field_object) randomly not working’ is closed to new replies.