Not sure how to click edit on that last post as I posted the wrong code…
I am using the below with Image Array option selected:
// loop
foreach( $items as &$item ) {
// vars
$icon = get_field('menu_image', $item);
// append icon
if( $icon ) {
$item->title = ' <img src="' . $icon['url'] . '" class="menu-image" alt="' . $icon['alt'] . '"><br>' .$item->title;
}
}
// return
return $items;