Witam, mam oto taki kod:
<select >
<?PHP
$args = array(
'theme_location' => 'sidebar-menu',
'before' => '<option><a href="<?php the_permalink(); ?>">',
'after' => '</a></option>'
);
wp_nav_menu($args);
?>
</select>
Celem było stworzenie dla wersji mobilnej strony menu w polu select, ale coś nie działa, ma ktoś pomysł jak to można łatwo zrobić ?