Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How can I add a page to the menu and define for the menu item that all subpages should be included by means of a simple checkbox?

share|improve this question

3 Answers 3

up vote 0 down vote accepted

you might be interested in one of my threads. Here: How to Hard Code Custom menu items

Thanks!

share|improve this answer
    
You can modify the code to find all the children and add them –  Sisir May 7 '11 at 9:59

Wordpress Menu do not work by automatically generating content. You can use the menu editor to add your pages manually, but menus do not get populated automatically.

So there is nothing in the Wordpress Frontend Menu API (undocumented) with which you could achieve what you're asking for.

share|improve this answer

You've probably figured this out since this is an old question, but the new menus for WP 3.0+ has a "menus" option that lets you drap a drop pages to form your menus.

The "menus" option also uses a checkbox to determine which pages are included.

HTH

share|improve this answer
    
I am actually looking for a way to add one "page" and have all its children automatically included. –  NetConstructor.com Jan 26 '11 at 2:52

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.