AdvancedCustomFields / acf

Advanced Custom Fields
http://advancedcustomfields.com/
835 stars 171 forks source link

Convert Flexible Content to ACF Block #76

Open BenjaminZekavica opened 5 years ago

BenjaminZekavica commented 5 years ago

Hallo thank you very much for this great plugin and this Gutenberg Feature :) I like it. But I have a question for the Flexible Content Fields. Its possible to Convert it to ACF Gutenberg Blocks?

elliotcondon commented 5 years ago

Hi @BenjaminZekavica

Thanks for the question, but no, this is not possible. Gutenberg blocks are very different to custom fields and the Flexible Content field can't act as a Gutenberg edit area.

BenjaminZekavica commented 5 years ago

Oh ok :D But now I have a problem with the repeater field in Gutenberg I have used this example:

if( have_rows('repeater_field_name') ):

    // loop through the rows of data
    while ( have_rows('repeater_field_name') ) : the_row();

        // display a sub field value
        the_sub_field('sub_field_name');

    endwhile;

else :

    // no rows found

endif;

But in Frontend I don't can see nothing

elliotcondon commented 5 years ago

Hi @BenjaminZekavica

This is not the place for basic support. If you are having issues writing template code, please be sure to contact our support team, and also try to debug the issue first: https://www.advancedcustomfields.com/contact/