WordPress.org

Ready to get started?Download WordPress

Forums

Get menu links only (1 post)

  1. Iperdesign_IT
    Member
    Posted 2 years ago #

    Hi all,

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic