Home › Forums › Front-end Issues › Creating Front End Post with Flexible Content › Reply To: Creating Front End Post with Flexible Content
So I’m assuming that you want to create some type of 3 column layout in the standard content editor and you want all the sub fields from the flex field into it. You need to get all of these fields
$_POST['acf']['field_55e95e8b6593f']['field_55ee68170ce36']
$_POST['acf']['field_55e95e8b6593f']['field_55ee68170ce36']
$_POST['acf']['field_55e95e8b6593f']['field_55ee683b0ce37']
this tells you the layout
$_POST['acf']['field_55e95e8b6593f']['acf_fc_layout']
I’m not sure what this is that equals 3
$_POST['acf']['field_55e95e8b6593f']['field_55ee67fc0ce35']
You’re also going to need to add any additional HTML that you’ll need before inserting it into the content.
You’re going to need some type of loop, and some conditionals to determine what layout was selected and then build the content based on that. Basically you’re going to need to do everything in pre save post that you’d do if you were displaying this on the front end.
What happens if there are multiple layouts. I understand what you’re trying to do, I’m just wandering if trying to take a flex content and put it into the standard editor is good choice.
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.