• I’m creating a custom menu system for a client that integrates with wordpress’es menu gui. I’ve gotten it working with a custom foreach loop which collects all the menus with wp_get_nav_menus(); then stores in a array each menu item of the specified menu with wp_get_nav_menu_items.

    The for each loop then goes by one by one and adds custom html without wordpresses default id and classes. I’d like to also include submenus and I’m having trouble finding a way to identify if the current item in the foreach loop is a sub menu item as signified by the indent in the menu gui. How does word press record that indent in the gui and how is this information queryable?

    I would sincerely appreciate any light any of you could shed on this. Thank you for your time.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Foreach menu item, Check if item is child’ is closed to new replies.