Support

Account

Home Forums Gutenberg wp_insert_post() and add acf blocks to the page Reply To: wp_insert_post() and add acf blocks to the page

  • I was able to add a block WITHOUT content. The issue was that instead of “acf:my-example-block” I needed to write “wp:acf/my-example-block”. However I am not able to put any content to the block generated. The content needs to go to the acf fields of the block. Any tips on this?

    I have tried this without success:
    <!– wp:acf/my-example-block {“data”:{“content”:”here is some content to the acf field”}}–>
    <!– /wp:acf/tt-block-content –>’