Home › Forums › ACF PRO › acf add local field to flexible content › Reply To: acf add local field to flexible content
I asked Elliot and this was his response.
The flexible content field uses the acf_get_fields() function to load all children fields.
So, all you would need to do is make sure that the ‘sub field’ contains the correct ‘parent’ reference so that it is found by the flexible content fieldAlso, the sub field needs an extra setting called ‘parent_layout’ containing the string layout key.
Checkout the pro/fields/flexible-content.php load_field function
So, it should be possible. I don’t have time to test it out right now. I’ll do some testing to see if I can figure it out as soon as I can unless you say you’ve figured it out.
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.