Support

Account

Home Forums General Issues Get_field, shortcode, nothing work, just display a word " array " Reply To: Get_field, shortcode, nothing work, just display a word " array "

  • i put this in single.php

    <?php

    // check if the repeater field has rows of data
    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 nothing still showing just the word ” array “