This tutorial includes the PHP code which creates a shortcode for any nav menu in any theme.
There’s 2 examples includes in this post:
- The 1st snippet works in the Twenty Twelve default theme for WordPress. It will also work in any other theme as long as you change the menu class to match what your theme uses.
- The 2nd snippet works in Genesis and will also work in any other theme if you also change the menu class.
You need to subscribe to fully access this tutorial.
Here’s what the shortcode outputs in Genesis when added in between text in your WordPress editor.
Simply change the menu class to match what your theme uses otherwise you menu may display vertically like a unordered list.
This tutorial answers this forum question:
Any idea how I can insert a menu into the body of a page? I do not want it in a side bar or in standard menu locations.