Skip to content

Instantly share code, notes, and snippets.


Trevor Robertson onetrev

View GitHub Profile
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
// 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>';