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; $sub_field_value = $specific_row['submenus_content']; $submenu = get_field( $sub_field_value, 'option' ); ?> <?php echo $submenu; ?> <?php endif; ?>
Thank you very much in advance
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.