• 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?

Viewing 1 replies (of 1 total)
  • There is a bug in plugin.
    Find following lines around #68:

    if ( in_array($page->post_parent,$include) )  $newget = 0;
    break;

    and change them to

    $include = array_unique($include);

Viewing 1 replies (of 1 total)
  • The topic ‘FYO folding page list modifying’ is closed to new replies.