Support

Account

Home Forums Gutenberg ACF Blocks Preview with Block.json and register_block_type() (WP 6.0 and after) Reply To: ACF Blocks Preview with Block.json and register_block_type() (WP 6.0 and after)

  • Hi! You can set default values for ACF in several ways:

    This can be useful in simpler cases — just set default values for the fields directly in the ACF field settings.

    In the block.json settings, you can add default values using the field_key. You can even set values for repeater fields by preserving the structure. For example, if you have a Relationship or Object field that returns post IDs, you can simply list the post IDs as default values.