So I have a top navigation, being generated using the following line of code: <?php wp_nav_menu( array( 'theme_location' => 'primary') ); ?>
I would like to include a where clause in this where it will only display pages under a certain order number (menu_order < 10, for example)
If you’re referring the the menu that will be used when a custom menu has NOT been set up, then you should be able to do this via a callback on wp_nav_menu.
Thanks esmi, how would I go about making that callback? If you can provide me with a link or just how I would add the condition in the function call I would really appreciate it 🙂