Tagged: ,

Viewing 2 reply threads
  • Author
    Posts
    • #1954
      sanderschat
      Member

      Hi!
      it seems I still dont fully understand the field-definition. So, excuse me if this sounds a bit ‘basic’:

      I want to create a dropdown of all registered menus.
      I get results via the function : get_registered_nav_menus()

      But how do i get these into a piklist field?

    • #1955
      Steve
      Keymaster

      @sanderschat

      Try this tutorial. It uses wp_get_nav_menus()

      You should be able to easily display it using wp_nav_menu().

    • #1958
      sanderschat
      Member

      yes, that works.

      The “issue” i had with the other function i tried to use, wsa that i just didnt know what to put in the array for the returning object.

      thanks for the tip!

Viewing 2 reply threads
  • The topic ‘dropdown of 'menus'’ is closed to new replies.