Home Forums Add-ons Flexible Content Field Add setting to flexible content layout


Add setting to flexible content layout

  • I’m wondering if it’s possible to add a custom setting to a layout within a flexible content field? The defaults are ‘Label’,’Name’,’Min’,’Max’. I toyed around with acf/render_field_settings and was able to add a setting to everything EXCEPT the layout meta. Unless I’m missing something, layouts don’t appear to be saved as field type. Any suggestions would be much appreciated!


  • Is there something new to it. I am also looking for the possibility to add settings to the layout within a flexible content field.

  • 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!

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Add setting to flexible content layout’ is closed to new replies.