Get list of all WordPress menus
Posted by navaneeth on Jun 5, 2013 in Php, Wordpress | No comments yet
If we need to get list of all wordpress menus we have to use the get terms,
The code to fetch all the WordPress menus os shown below
$menus = get_terms('nav_menu'); foreach($menus as $menu){ echo $menu->name . " n"; }
Leave a Reply