Home › Forums › Add-ons › Flexible Content Field › WordPress Editor as Flexible Content Layout › Reply To: WordPress Editor as Flexible Content Layout
Hi @benluoma
Why not write a custom function that you run only once? Think of it as a ‘migration’ function.
In this function you could query all posts, and loop over them. For each post, you can load in the flexible content field value, and append the post_content if not already added (somewhat similar to your above code).
This would mean that you only need to run the function once, then comment it out and all your posts should be updated!
Thanks
E
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.