Support

Account

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.