Forums
Home / Fixing WordPress / How to make menu to array?
(@peter-westerlund)
14 years, 6 months 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?
(@michaelh)
Might look at Function_Reference/get_pages.
Excellent.