🐞 fix: Update footer navigation collection logic
This commit is contained in:
@@ -15,7 +15,9 @@ $copyright_text = getFieldValue( 'footer.copyright_text' ) ? getFieldValue( 'foo
|
|||||||
|
|
||||||
$copyright = str_replace( '%Y', gmdate( 'Y' ), $copyright_text );
|
$copyright = str_replace( '%Y', gmdate( 'Y' ), $copyright_text );
|
||||||
|
|
||||||
$footerNav = wp_get_nav_menu_items( 'footer' );
|
$locations = get_nav_menu_locations();
|
||||||
|
$footerMenu = get_term( $locations['footer_navigation'], 'nav_menu' );
|
||||||
|
$footerNav = wp_get_nav_menu_items( $footerMenu->term_id );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user