WordPress custom dropdown menu

Sev­eral clients had the same request : they didn’t want the top level items to act as links, but just be a place­holder to con­tain the child pages links.
For exam­ple : About -> about us, the About link doesn’t link to a page because it has no con­tent.
It works with super­fish menus
any­way here is the code:

 ID;
      $children = wp_list_pages('depth=1&echo=0&child_of=' . $id . '&sort_column=menu_order&title_li=');
      if ($children) {
          print '
  • ' . $page->post_title; print '
      '; print $children; print '
  • '; } else { print '
  • ID) . '">' . $page->post_title . '
  • '; } } ?>

    You can view the work­ing code at http://sideradesign.com/krf

    Leave a Reply