I’ve been using ACF as fields on a custom post type with great success and am very pleased with it. However I’m currently trying to see if I can bulk import content from a CSV file to save a lot of time which is causing an undefined index error in the ACF code.
I’ve found plugins that acknowledge the custom post type and let me save data to the custom fields, everything seems to import fine – however where get_field() or the_field() is called I get the following two errors:`Notice: Undefined index: formatting in […]/core/fields/text.php on line 156
Notice: Undefined index: formatting in […]/core/fields/text.php on line 160`
The field content is still passed to the variables and displays fine, but the errors show up where it is called (I have debug on).
I appreciate this could well be caused by issues with the content I’m importing or the plugin I’m using – but the content displays as expected and I can ‘update’ the post without changing anything and all the errors all disappear so I assume field[formatting] or something is not being set or run when imported as opposed to an update.
It’s not a major problem, but it is causing loads of notices everywhere which are getting in the way! (Any workaround suggestions will be gratefully accepted!)