Home › Forums › Add-ons › Flexible Content Field › Add setting to flexible content layout › Reply To: Add setting to flexible content layout
Hello,
As far as I know, there’s no way to actually do it “out-of-the-box”. There’s a workaround tho. Within each one of your layouts, add one “clone” field, which will clone an entire field group. The targeted field group will be used as a “template”.
Then, you can easily add custom settings to your “template” field groups, using the action acf/render_field_group_settings
coupled with acf_render_field_wrap()
function.
You now have field groups which are actual Flexible Content layouts, with custom settings (Image upload, Google map etc…). Just remember to deactive them, so they won’t appear on regular post types out of the flexible content 😉
If you’re interested, I have a list of all fields which can be used as field group settings and their behavior. Just let me know if you want it!
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.