WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Horizontal menu with Pages and Subpages (4 posts)

  1. Ojster
    Member
    Posted 8 years ago #

    Hello,

    I would like to create a horizontal menu with pull down menus that would show SubPages and SubSubpages. I figured out how to make this as a list, but not how to include it in the menu.

    I would like to integrate it into a G5 menu by http://www.yxscripts.com/ and therefore I would need an option to insert each separate Page link into additional code. I knew how to make this in MovableType, but have not been able to figure it out in WP.

    If I use this code:
    <?PHP wp_list_pages("child_of=19&sort_column=menu_order&title_li="); ?>
    I get a complete list of SubPages and SubSubPages. I would like to insert each separate link itno the following code:

    addLink("tool1-sub", "SubPage Name", "SubPage Link", "", "");
    addLink("tool1-sub", "SubPage1 Name", "SubPage1 Link", "", "");

    And this would have to be for every link. And similar code also for SubSubPages.

    Any ideas on how can I do that? Or is there a better way to create such horizontal menu?

    I would really appreaciate any advice.

    Best regards,
    Peter

  2. Ojster
    Member
    Posted 8 years ago #

    In MT it would look something like this:

    <MTCategories>
    addLink("SubSubB2", "  <$MTCategoryLabel$>  ", "<$MTCategoryLabel$>", "<$MTCategoryArchiveLink$>", "");
    </MTCategories>

    And it would automatically create the coorect code for each category. or SubPage in my case above...

  3. Ojster
    Member
    Posted 8 years ago #

    Well, I just found a thread here with similar menu type. The solution is posted on this website:

    http://www.invokemedia.com/category/web-technologies/cms-systems/

    It would still be great though to be able to generate needed code similar to MT script.

    Best regards,
    Peter

  4. Ojster
    Member
    Posted 8 years ago #

    Any ideas on how to assign class="daddy" to parent pages and remove the actual link for that page?

    I tried modifying the source code but with no luck. I would like this menu to act like http://www.htmldog.com/articles/suckerfish/dropdowns/example/

    with those arrows displayed when we have subpages.

Topic Closed

This topic has been closed to new replies.

About this Topic