submenu.php 342 Bytes
Newer Older
Benthe Kuijpers's avatar
Benthe Kuijpers committed
1
2
3
4
5
6
7
8
9
10
11
<?php
if (have_rows('submenu_items')) :
	echo '<div class="submenu">';
		echo '<div class="submenu__wrapper">';
			while (have_rows('submenu_items')) : the_row();
				echo '<a href="#' . get_sub_field('anchor') . '" class="text-link text-link--down">' . get_sub_field('label') . '</a>';
			endwhile;
		echo '</div>';
	echo '</div>';
endif;
?>