FYO folding page list modifying
-
I am wondering if anyone has modified the plugin “FYO folding page list” in order to work as a nav with 3 levels. The problem is that when on 3rd level it only shows it’s parent nav item and siblings on 3rd level, NOT the siblings of it’s parent.
I need a way to be able to show the entire list of pages without them disappearing when the visitor goes to the 3rd level page, for example, I have:
main page -sub pages –sub sub pages
I need the list of sub pages to still be listed when a user goes to the sub sub page, at the moment on sub sub page the list only displays its parent sub page.
I think it may be a case of altering this bit of code….
// Show immediate children & siblings
foreach ($pages as $page ) {
if ( $page->post_parent == $page_id ) $include[] = $page->ID;
if (isset($r[‘siblings’]) && $r[‘siblings’] && $page->post_parent == $mainparent ) $include[] = $page->ID;
}…… to include the parent’s siblings too.
Has anyone come across/solved this problem?
- The topic ‘FYO folding page list modifying’ is closed to new replies.