Skip to content

Instantly share code, notes, and snippets.

Avatar

Trevor Robertson onetrev

View GitHub Profile
@onetrev
onetrev / ACF Mega Menu.php
Last active September 12, 2022 03:43 — forked from fourstacks/gist:9806658
[ACF Mega Menu] Create a mega menu with ACF #wp
View ACF Mega Menu.php
<?php
// check parent repeater
if( have_rows('parent_navigation_items', 'options') ):
echo '<ul class="nav primary-header-nav">';
// loop parent items
while ( have_rows('parent_navigation_items', 'options') ) : the_row();
echo '<li>';