• I’m trying to use fold page plugin in my sidebar to show the children and grandchildren — but NOT the parent. The parents are displayed in my top horizontal nav bar so I don’t want them on the side. I’ve tried both the “Fold page list” plugin (which does not provide a method for sort order!?) and “NRS Folding Pages Widget” – which is quite nice and simple code, but no way to hide these parents.

    I have to think this is a common problem – wonder why it’s so difficult to achieve?

Viewing 2 replies - 1 through 2 (of 2 total)
  • @smartbrunette,

    I don’t know how long I’ve searched for this, but it’s been countless hours and stretching over a couple of WP projects. For the latest project, we needed a top menu and a a submenu that went 3 levels deeper at times. I was a bit stumped for a viable solution, until I came across this page.

    You add the code to your theme’s functions.php file and then call the function – wptt_multilevel_menu(); – just like you would wp_list_pages. And like magic, it just worked for me in WP 2.7.1. Now I can click any link and it just opens the pages below in the hierarchy. Besides, it uses all the highlighting for current items, parents and ancestors, so styling works great to.

    Thus far I’ve not come across any hickups and I’ve extremely happy to have found that bit of code. I don’t know anything about writing plugins, but I guess one could run that code as a plugin? And perhaps one could add extra functions too..

    Good luck,
    Karl

    Forgot to mention – in the original code, it outputs the top level as well. If you look at the whole function posted on that page, simply dim (or remove) lines 30-32, which is where the top level is printed and you’re good to go.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide parent in fold page list’ is closed to new replies.