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
{$parent_field}_{$row}_{$sub_field}
// nested repeater
{$parent_field}_{$row}_{$sub_field}_{$row}_{$sub_field}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.