Home Forums Gutenberg Default Values on back-end


Default Values on back-end

    • luka

    • October 12, 2020 at 9:30 am


    Already asked on Pro forum, but since there are no replies, trying my luck here.

    I added default value option for Gutenberg block for Image type

    // sets default values for Image field
    add_action('acf/render_field_settings/type=image', 'add_default_value_to_image_field');
      function add_default_value_to_image_field($field) {
        acf_render_field_setting( $field, array(
          'label'      => 'Default Image',
          'instructions'    => 'Appears when creating a new block',
          'type'      => 'image',
          'name'      => 'default_value',

    When creating new post/page with that block, default image doesn’t show, at least not before post has been saved and reloaded. Can this be somehow enabled, to show immediately after the block has been inserted.


Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.