I’m creating a template in HTML5. On navigatiom menu i need to implement something like this
<nav>
<a href="url1">url1</a>
<a href="url1">url2</a>
<a href="url1">url3</a>
<a href="url1">url4</a>
...
<a href="urln">urln</a>
</nav>
If i use ‘wp_nav_menu’, it prints
<div><ul><li><a>
when i need just
<a>
There is a way to get that? Thanks!
Use a custom walker:
⦠and then call
wp_nav_menu()
like this:I’d suggest using the
wp_nav_menu_items
filter.