false, 'classes' => 'social-icons p-0 mr-1', ) ); ?>

    children relationships $menu_items_by_parent = array(); foreach ( $footerNav as $item ) { $parent_id = (int) $item->menu_item_parent; if ( ! isset( $menu_items_by_parent[ $parent_id ] ) ) { $menu_items_by_parent[ $parent_id ] = array(); } $menu_items_by_parent[ $parent_id ][] = $item; } // Display top-level items (parent = 0) if ( isset( $menu_items_by_parent[0] ) ) { foreach ( $menu_items_by_parent[0] as $item ) : // Check if this is the contact link $is_contact = false; if ( function_exists( 'get_field' ) ) { $contact_link = get_field( 'contact_info.email', 'option' ); if ( $contact_link && strpos( $item->url, 'contact' ) !== false ) { $is_contact = true; } } ?> > title ); ?> ID; if ( isset( $menu_items_by_parent[ $item_id ] ) ) { ?>
    • title ); ?>