Support

Account

Home Forums Gutenberg ACF Block Duplication – Content Disappears

Solving

ACF Block Duplication – Content Disappears

  • So, a weird issue. I am creating a custom theme using custom ACF Blocks. Everything works great except when I try to duplicate a block in the admin to have a similar block on the page.

    After duplication, I hit save and it shows up exactly as the original block. When I try to adjust any of the content and hit save, it clears out all content from all fields within the duplicated block leaving them blank. I Try adding content again, it doesn’t save, just stays blank.

    It works fine if I add a new block of the same type and just copy the content over, but the duplication process just doesn’t work.

    Things I checked.
    Both blocks have unique IDs
    No console errors
    error log not showing anything related
    WP Debug on and not showing anything
    Cleared all caching

    Also this is using WP Multi-site (Not sure if that matters)

    Any help greatly appreciated.

  • Hi. The same thing happens on 5 of my sites.
    I’m not using Multi-site.

    It’s been happening for some time now but I couldn’t find a solution yet.

    I’m curious, do you have any hook to save_post action?

  • Hi. I have the same issue on a website that I have built. Did you find a solution to this problem?

  • Yes, same issue here

  • Same issue here, after a bit of inspecting it appears that this is only affecting radio buttons for me at the moment and only on some sites across various different WP versions, no multisite and latest ACF version.

    Any newly duplicated blocks inherit the copied block settings but the settings in the original block are removed when doing this.

    I’m not sure if this is the actual issue or intended behaviour but the additional fields inside the block are all inheriting the same data-block-id value. Block ID’s are all still unique though.

    <div class=”acf-block-fields acf-fields” data-block-id=”block_b2d072f5-ef0d-48ad-92c7-6e3ad9a30fd0″>

  • So what is the solution here

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.