WordPress.org

Forums

Template tags and menus (2 posts)

  1. robhav
    Member
    Posted 7 years ago #

    I am trying to replicate a css menu using WordPress Template tags. I am struggling to use the template tags to produce the following output:

    http://wordpress.pastebin.ca/895097

    The menu has 4 main pages, and 11 subpages. However, the last child of each main page must have the class="last" tag attributed to it. In addition, the main pages must have a blank div tag placed afterwards, in order for the menu to render correctly.

    Is this possible to execute using template tags? As a newbie, I'm finding this quite challenging!

  2. nudnik
    Member
    Posted 7 years ago #

    I'd manually add the pages, personally. Looks like the function definitions are pretty complex for the page listing.

Topic Closed

This topic has been closed to new replies.

About this Topic