Use a custom walker:
class WPSE_33175_Simple_Walker extends Walker
{
public function walk( $elements, $max_depth )
{
$list = array ();
foreach ( $elements as $item )
$list[] = "<a href="https://wordpress.stackexchange.com/questions/33175/$item->url">$item->title</a>";
return join( "\n", $list );
}
}
… and then call wp_nav_menu()
like this:
wp_nav_menu(
array (
'theme_location' => 'your_registered_theme_location',
'walker' => new WPSE_33175_Simple_Walker,
'items_wrap' => '<nav>%3$s</nav>'
)
);
Related Posts:
- Is there an easy way to replace a custom menu link with a page or post?
- Why do Custom Nav Menus generate so many classes on list items? Can I manage this somehow?
- Custom search filter causes menu and query_posts problems
- Using nonce in menu item
- How show sub menu only using wp_nav_menu()
- Custom Nav Walker menu – Display children count
- How to add menu to Dashboard that can be viewed by all users
- List children of second level sub page
- Show top-level parent with submenu menu walker
- Add section to custom menu panel
- How can I add a sub menu to an existing navigation menu in WordPress?
- How do I create a magazine type menu – sub-menu setup using wp_nav_menu and child of twentyten? [closed]
- Adding different classes to anchor in navigation menu
- Main menu – get rid of titles?
- Arrow down in menu not displaying
- How to gain access to each menu item in wordpress?
- add span to wp_nav_menu widget
- How to get wordpress nav menu outside of wordpress system?
- Second nav is merged with the first in mobile
- Import menu tree to custom menu from csv or xml, many nested menu points
- Create Dropdown menu Using wp_nav_menu() function
- Update Nav Menu Items Programmatically
- Show menu item only if user is logged In (not word press login)
- Custom menu output
- Programmatically create and place a nav menu in a theme location?
- Top Menu showing as Plain text before page load [closed]
- Show menu based on parent & ancestor
- Set the checkbox as checked by default in menu item page
- Add Button to Bottom of Mobile Menu
- how to remove the top navigation bar or header top on wordpress website?
- Add class active to static menu
- Show Home Link In wp_nav_menu but only on primary menu
- Add active class to top-level menu items when viewing single for that post type
- How to use buttons elements for tgetWordPress menu items?
- Sorting child item of navigation menu using code in wordpress
- automatically append menu parent as first item in submenu with nav_walker
- Add active class to ul container menu
- Change hyphen/dash for vertical line in menu [closed]
- Help with walker for nav
- API for wp menu hacks
- wp_list_pages sort order by custom nav menu order
- Displaying Nav Menu
- Adding toggle-able element after menu item
- WP admin style not refreshing
- Navigation menu not visible (contrast issue) on home page
- Tageting a specific menu link with nav_menu_css_class
- login logout menu changes in wordpress [closed]
- Style wp_link_pages as a select drop down list
- Menu deletes all items and position – wordpress bug?
- Mobile navigation is shown, but standard navigation does not disappear
- Plugins & Setting Menu Items Removed From Admin Panel
- Custom Menu Anchor Links Not Working
- Responsive menu on genesis theme [closed]
- Question about Menus on WordPress
- Controlling sub-menu within sub-menu
- Main menu navigation links and new pages
- Bootstrap menu – make menu entries with submenu not clickable
- How are methods of class Walker_Nav_Menu invoked?
- Duplicate menu items when auto generating menu from product categories
- Using menus to link to sections on the home page
- Multisite: menus can’t be added in child sites
- How to change the navigation menu
- Menu links URL with PHP GET method
- Is it possible to remove the highlighted menu on Users and highlight a different menu?
- Adding widget to sidebar which contains current page’s submenu
- How To add this tag before drop-down ul. in wordpress
- Unable to get Navigation Menu to display in the desired location
- WordPress theme editor not showing
- How to switch menu location in this header.php?
- Why does WordPress convert absolute URLs to relative URLs for menu items?
- Extending Walker_Nav_Menu in wp_nav_menu List of Empty Items
- Jump to section on another page from menu item
- Enable identical menu on network sites
- Users are required to login to my site. How define user.member boolean, its permissions, and conditionally display/handle behavior based on it
- How to Use Default Auto-Generated Menu?
- Adding a menu item to the main menu
- wp_is_mobile() inside js
- Adding two same css class on menu item
- menu is only pulling in one item
- Any reason why widgets/menus get emptied when I updated custom theme code?
- Add items to a menu
- How to change page location in WordPress
- Use menu structure for permalinks
- Add tooltips with image in WordPress Menu?
- How to make a drop down menu with categories
- how to keep theme background image, menu or site header image while moving site in sub directory?
- Unable to edit Navigation bar
- Editor user only allow to post on certain categories
- Menu Underline shows without Hover after adding subitems
- Add class to current category menu item
- WordPress wp get nav menu items does not deliver external link
- How to create a custom WordPress navigation menu?
- Should I custom code drop down menus or use a wordpress plugin?
- How to load css file in my menu in wordpress
- Site pages show the page title under navigation bar
- Navigation menu, remove item from desktop
- Jquery dropdown menus working locally, but not in WordPress [duplicate]
- Wrapping my ‘s with
- child theme font awesome icons not working
- How to replicate a mobile menu from a site to a wordpress site [closed]