wp_nav_menu( array(
'theme_location' => 'nav_top',
'container' => 'nav',
'menu_class' => '',
'items_wrap' => '<ul>%3$s</ul>',
'walker' => 'Example_Walker'
));
function combineArray (&$arr, $idx = 0) {
static $line = array();
static $keys;
static $max;
static $results;
if ($idx == 0) {
$keys = array_keys($arr);
$max = count($arr);
$results = array();
}
if ($idx < $max) {
$values = $arr[$keys[$idx]];
foreach ($values as $value) {
array_push($line, $value);
combineArray($arr, $idx+1);
array_pop($line);
}
} else {
$results[] = $line;
}
if ($idx == 0) return $results;
}