The documentation for the function says it can be used to add rows to a flexible content field, but I’m not sure how to get this working. Not sure how to properly set the layout for a row. I’ve tried adding 'layout' => 'foo'
to the value array, but that doesn’t seem to work either.
An example on the documentation page would be very useful.
Hi @dabernathy89
I believe you need ‘acf_fc_layout’ key instead of ‘layout’ to hold the name of the flexible content. This page should give you more idea about it: http://www.advancedcustomfields.com/resources/update_field/.
Hope this helps.