How do I limit the number of menu items pulled in by wp_nav_menu? I only want to pull in the first 5 menu items even though there are 20 in the actual menu. The client will select the order and in all other places it’s fine to have the full menu appear.
Here’s what I’m trying but it doesn’t seem to work :’-(
wp_nav_menu( array( ‘theme_location’ => ‘quicklinks’, ‘menu_item_start’ => 1, ‘menu_item_end’ => 5) );
Could you create a seperate menu in admin, with just those five items, in the order that the client wants them? Then you could attatch that menu to this location, and the other to the others.
this is my solution which works (you need to modify “primary_navigation”):