Reputation: 1363
For Wordpress, when creating a page, a menu entry will be added to top level menu automatically. I have disabled this feature because it is not what I what.
What I want is, like Drupal, when creating a page, I can have a dropdown select to select which menu to add this page to and to which parent.
Which plugin can do that?
Thank you.
Upvotes: 1
Views: 2711
Reputation: 575
You can do it yourself. What you need to do is:
add_meta_box
to add a meta box to your post editor. In that meta box, build a list of available menus using results from get_registered_nav_menus()
function.save_post
action, which will create a menu item.wp_save_nav_menu_items($menu_id, $item_data)
It is not a piece of cake, but you can do it in a couple of hours.
Upvotes: 2