Home › Forums › Add-ons › Flexible Content Field › Populate Flexible Content Rows Programmatically › Reply To: Populate Flexible Content Rows Programmatically
I think it will be easy if you don’t need to see the result on the flexible content right away. That means that you need to update/save the post, which reloads the editor page, to show the result. To do that, you can create a select or radio field to list the layout you want and then use the acf/save_post hook and the update_field() function to update the flexible content.
I hope this makes sense 🙂
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!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 2023 Advanced Custom Fields.