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!