• I’m trying to make a website with main navigation and a sub- and subsubmenu.

    So far I get the main navigation en both sub- and subsubnavigation visible, but when I select a subsub-item, the sub-items disappear…

    I tried all kind of different things, but doing something wrong.

    Here’s my code so far;

    <?php
      if($post->post_parent){
    
        $children = wp_list_pages('title_li=&child_of='.$post->post_parent.'&echo=0');
    
      } else {
    
        $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
    
      }
    
      if ($children) {
    
        echo "<ul id=\"accordeon\">";
        echo 	$children;
        echo "</ul>";
      }
    
    ?>

    The test page with the submenu is available on the following link; https://www.graphixs.nl/vrenken/wordpress/?page_id=8

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m having the same problem. Hope that someone can figure this out.

    Thread Starter graphixs

    (@graphixs)

    Ok, I went further with developing the website, but now I’m still stuck on the subsubitems…

    I’ve searched and tried different things, but none of them will work.

    The situation I want is the following;

    Submenuitem 1
    – Subsubmenuitem 1
    – Subsubmenuitem 2
    – Subsubmenuitem 3
    Submenuitem 2
    – Subsubmenuitem 2

    I hope someone can help me with this, because now the navigation is not completely friendly

    Same problem here… Should be a basic plugin, I’d think, but I haven’t been able to find any solution either except a large number of manually setup menus which afterwards need constantly to be updated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sub- and Subsubmenu problem’ is closed to new replies.