Now plugged in to WordPress
December 22nd, 2005I’ve been continuing my experiments with migrating the Community Council site to WordPress 2.0. One unexpected obstacle turned out to be the fact that WordPress doesn’t support folding menus for static pages ‘out of the box’.
A search of the plug-ins site didn’t come up with anything obvious, so I’ve dusted down my very rusty php skills and coded a plug-in to do the job. It ain’t pretty, but it works, so I’ve posted details here and in the WordPress Codex in the hope it will be useful to someone else.
You can try out the results at the Community Council test site. However, don’t complain if it isn’t working – it is a test site after all!

January 5th, 2006 at 8:09 pm
many thanx for the “fold page menus plug-in for wordpress”.
I have one question: in the sides menu I would like to leave never the pages 7 and 8. What i have to write fpr this? can you help me?
sorry for, my bad english
January 5th, 2006 at 9:24 pm
With version 1.1 of fold_page_menus you can say:
wp_list_pages(fold_page_menus(’7,8′).’title_li=<h2>Pages’)
and pages 7 and 8 will never be displayed in the menu.
Hope this helps.
January 6th, 2006 at 10:42 am
dankeschön!
(thank you)
January 6th, 2006 at 7:26 pm
i have still one questtion more.
default: the navigation is alphabetically arranged indicated. i would like to arrange it with the id.
can you help me also there? !
January 7th, 2006 at 9:31 am
Yes, this is one of the options with wp_list_pages:
wp_list_pages(fold_page_menus(’7,8′).’sort_column=menu_order&title_li=<h2>Pages’)
See http://codex.wordpress.org/Template_Tags/wp_list_pages#List_Pages_by_Menu_Order for more details.
John
January 8th, 2006 at 5:23 pm
thanx a lot!