WordPress.org

Forums

[resolved] How to make menu to array? (3 posts)

  1. Peter Westerlund
    Member
    Posted 5 years ago #

    Hello,

    I want to customize my pages-menu more. It would be best to make the menu to an array. Then I can print it with a foreach loop (to ul-list). Then I can access the first and last menu items (li) to add span elements in them.

    How do I make this possible?

  2. MichaelH
    Member
    Posted 5 years ago #

  3. Peter Westerlund
    Member
    Posted 5 years ago #

    Excellent.

Topic Closed

This topic has been closed to new replies.

About this Topic