Home › Forums › Add-ons › Flexible Content Field › Add setting to flexible content layout › Reply To: Add setting to flexible content layout
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
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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.