Support

Account

Home Forums ACF PRO Display data from specific repeater row Reply To: Display data from specific repeater row

  • Hello everybody,
    I came across these threads and I am currently trying on the same topic. My repeater sits inside an option page and is queried by within a flexible layout. Unfortunately, it does not work that way, what’s wrong with the code?

    <?php if (get_sub_field('sidebar_submenus') == 'sm-1') : ?>	
    <?php
    $rows = get_field('submenus', 'option' );
    $specific_row = $rows[0];
    $sub_field_value = $specific_row['submenus_content'];
    $submenu = get_field( $sub_field_value, 'option' );
    ?>
    <?php echo $submenu[0]; ?>	  
    <?php endif; ?> 

    Thank you very much in advance
    lexx