I’m thinking that doing this in the code could make ACF store and retrieve the values from the same place.
ACF stores the subfields of a flex field in the database as
Nothing will keep you from having to duplicate the fields if you want to have the same fields in multiple layouts, either in code or in the editor. The only thing my suggestion might do is alter the way the field data is stored in the database.
I’ve found that if I want to have lots of layouts that all use common fields that a repeater with a heavy does of conditional logic is a better choice than flexible content fields.
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!