WordPress’ post types include navigation menu (Post Type: ‘nav_menu_item’).
I know I can add these “single menu items” like this:
piklist(‘field’, array(
‘type’ => ‘post-relate’
,’scope’ => ‘nav_menu_item’
,’template’ => ‘field’
));
This gives me all menu posts (single menu items)…
But how can I get each menu (e.g. the whole menu system, not only items) instead?
This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies. Find out more.