WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In the WP menu creation GUI there's the Automatically add top level pages option. I would like to do the opposite, for any page that is in the menu, automatically add it's child pages. Is there a way to do that ?

share|improve this question
up vote 2 down vote accepted

Simply put: no.

If you want dynamic updating of your menu items, you would probably be better-served using wp_list_pages() or wp_page_menu().

share|improve this answer
    
Ok thanks. I thought maybe there would be a way to hook into the menu to expand the behavior. – mike23 Jun 20 '11 at 13:08

An alternative, at least, is to use this plugin: Auto Submenu

WordPress can only automatically add new top-level pages to menus. With Auto Submenu, new child pages will also be automatically added to menus.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.