Trying to get items out of wp_nav_menu
-
Hi, im trying to get select bits of info out of wp-nav_menu. I have a menu made in the Admin UI area thats needs different classes adding to each li tag. I can’t seem to get a foreach loop to work. The other thing I need it for is from a drop down selection box. I want to do a foreach on the name of each page in a given menu.
Any ideas how i return the name and permalink or whatever of each Li? Or any suggestions on looping through the menu itself? I’ve tried dropping it into a variable with the echo set to false. When i loop though it doesn’t work, maybe because its an object? My PHP is a little limited right now…
Help : )
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Trying to get items out of wp_nav_menu’ is closed to new replies.