<?php while(has_sub_field('side_menu', 'option')): ?>
<?php if(get_row_layout() == "side_menu"): // layout: Content ?>
<div>
<h2 class="acc-head"><?php the_sub_field("menu_title"); ?></h2>
<?php if(get_sub_field('page_link')): ?>
<?php while(has_sub_field('page_link')): ?>
<?php the_sub_field('page_name'); ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php elseif(get_row_layout() == "file"): // layout: File ?>
<?php endif; ?>
<?php endwhile; ?>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.