Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Looks like he figured it out. If you know the menu id, you can get an array of objects with
wp_get_nav_menu_items( 3, array( 'update_post_term_cache' => false ) )
What do you want to control there?
You can customize the menu however you want via walker . And for each menu, set your own walker.
An example of a walker for the bootstrap menu - https://github.com/wp-bootstrap/wp-bootstrap-navwalker
But no way through WP_Query. He needs someone else.
You can also pay attention to wp_get_nav_menu_object()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question