WordPress.org

Ready to get started?Download WordPress

Forums

Navigation plugin recommendation wanted (3 posts)

  1. jhob
    Member
    Posted 6 years ago #

    Hi there,

    I am looking for a plugin that will be able to automatically generate menus based on the site hierarchy that I define in wordpress.

    I would like the top level navigation to be in a horizontal bar at the top and then second level navigation to appear vertically on the left. I don't need anything that is styled as I will do this myself. I would like it to work much like this site does.

    Could anyone recommend a plugin that would suit my requirements?

  2. moshu
    Member
    Posted 6 years ago #

    Maybe a combination of a plugin and some work... Would this help?
    http://www.transycan.net/blogtest/2007/07/25/creating-a-two-level-menu-with-pages-part-1/

  3. jhob
    Member
    Posted 6 years ago #

    Thanks moshu,

    That was exactly the sort of thing I was after, cheers!

    I have almost got it to work in the way that I want. The side menu showing levels 2 and downwards works fine when showing level 2 and 3 menu items but when clicking on a level 3 menu item the menu only shows level 3 items.

    Now I think I need to add an extra condition to code that generates the side menu, it currently looks like:

    <ul>
    <?php
    $thispage = $wp_query->post;
    if($thispage->post_parent!=0)
    {
    wswwpx_fold_page_list("depth=2&title_li=&child_of=".$thispage->post_parent);
    }
    else
    {
    wswwpx_fold_page_list("depth=2&title_li=&child_of=".$thispage->ID);
    }
    //Add an extra handler in here for the case that this is a 2nd or 3rd level page.
    ?>
    </ul>

    Anyone have an idea of what code I would need to add in here? If you want to take a look at the site and see it working it can be found here.

    Thanks,
    John

Topic Closed

This topic has been closed to new replies.

About this Topic