Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wordpress-menus like multi-level menus

You must know WP 3's multi-level menu configuration feature on the dashboard.

I was wondering how WordPress is doing that. Yes, I know they are using jQuery UI. But still, how? Is there any documentation?

Or is there any plugin or anything that shall help me?

Thank you all.

alt text

like image 795
kapeels Avatar asked Oct 17 '10 11:10

kapeels


People also ask

How do I create a hierarchical menu in WordPress?

In WordPress you are able to create a multilevel / hierarchical menu via WordPress Menu System ( WordPress admin -> Appearance -> Menu ) as well as via Theme Customizer ( WordPress admin -> Appearance -> Customize ).

Can you have multiple menus in WordPress?

Go to WordPress Dashboard → Appearance → Customize → click on Menus; Add a new menu, let's call it “Contact Page Menu” (or any other name); Add menu items for each page or custom link and click on Publish; Repeat the process for all the other menus you need.


2 Answers

Nestable

Drag & drop hierarchical list with mouse and touch compatibility (jQuery plugin)

http://dbushell.github.com/Nestable/

like image 90
Muhammad Shariq Avatar answered Oct 15 '22 13:10

Muhammad Shariq


I used Nestable jQuery plugin to accomplish it, but I forked it to add some extra features (Add/Delete/Edit actions and Slug property):

https://github.com/FrancescoBorzi/Nestable

enter image description here

like image 33
Francesco Borzi Avatar answered Oct 15 '22 11:10

Francesco Borzi