Home Forums General Issues Correct Way to Create a New ACF Post Reply To: Correct Way to Create a New ACF Post

  • I’m not sure about caching, but I’ve not had a problem in the past so I’m not sure about this. I don’t see ACF adding an function to insert a post. You will need to alter this meta_input() array yourself, which is not a process that’s easily described if you’re using repeaters. Every ACF field that’s inserted should have the field key reference in the database, without it you could have issues displaying the information on the site depending on the type of field.

    Each acf field has two entries in the database

    meta_key       | meta_value
    $field_name    | $field value
    _{$field_name} | $field_key

    Repeater field names are constructed.

    // repeater
    // nested repeater