Support

Account

Home Forums Gutenberg ACF 5.8. Beta 3 – Clone Field Problem

Helping

ACF 5.8. Beta 3 – Clone Field Problem

    • wppal

    • February 5, 2019 at 11:22 pm

    Hey, in the newest beta of ACF the clone field is not working correctly inside Gutenberg blocks. When I try to clone fields into two separate groups, the fields can not be read correctly via get_field() or the_field().

    Example below.
    So, here are my custom fields, that I want to clone:
    acf fields

    Here are my clone fields:
    clone field 1
    clone field 2

    Here are my setting inside the gutenberg block:
    block settings

    Here is my code:

    print_r( get_field( 'font_settings' ) );
    echo "<br/>";
    print_r( get_field( 'font_secondary_settings' ) );

    And here is my result after saving the block setting:

    Array ( [font_type] => custom [font_family] => Arial [font_color] => #000000 ) 
    Array ( [font_type] => custom [font_family] => Arial [font_color] => #000000 )

    As you can see, the values doesn’t match with the block settings.
    Inside the block panel, everything is fine (correct font name and color even after reloading the page), but in gutenberg preview and on the frontend the result is incorrect.

    Is there a way I can bypass this issue and keep the clone field?

    • Elliot

    • February 6, 2019 at 11:02 am

    @wppal

    Thanks for the question.

    The Clone Field is not yet supported for ACF BLocks in 5.8.0-beta3.
    We hope to address this issue in 5.8.0-beta4 and will hopefully begin work on this shortly 🙂

Viewing 2 posts - 1 through 2 (of 2 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.