I need to limit the number of links a user can apply to the top level of the navigation. I want them to go up to only five but there is no built in way to limit this. You can limit the depth but not the amount. The sub nav can be any length.
This is what I have:
<?php $nav_menu = wp_nav_menu( array( 'menu' => 'Top Nav', 'depth' => 3, 'menu_class' => 'navigation dropdown', 'container' => '' )); ?>
Can anyone help?