WordPress.org

Ready to get started?Download WordPress

Forums

Walker Class Help (2 posts)

  1. kcharity
    Member
    Posted 2 years ago #

    I am trying to understand the walker class and am completely lost.

    I am trying to achieve this:

    [code moderated - please use the pastebin]

    It seems like it should be straight forward. But I am lost. All the elements get the 'leaf' class unless they are a parent of a child element. The first parent or the first child get 'first' added to the class. The last parent or child get 'last' added to the class. All parents get only 'expanded' as their class. If the item is the active page then the a tag gets the class "active".

  2. kcharity
    Member
    Posted 2 years ago #

    Here is the link to the pastebin then:

    http://pastebin.com/6fTw1Yut

    Any help would be appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic