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?


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


  • You can modify the code to find all the children and add them
    – Sisir
    May 7 '11 at 9:59

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.


  • I am actually looking for a way to add one "page" and have all its children automatically included. Jan 26 '11 at 2:52

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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