This is my first project involving wordpress and i've got stuck trying to create a custom walker for a footer menu.

I basically want to change the menu from the <ul> <li></li> </ul> structure to a <p> <span></span> </p> structure.

The menu and stuff is displaying file and I have been able to adjust the start_el and end_el functions without issue so I now get this:

<ul> <span>*link*</span> <span>*link*</span> </ul>

Which is obviously half way there, I have written the start_lvl() and end_lvl() tags as shown below but they are ignored by wordpress - nothing I put in them (even die()) is executed (which is a bit suspicious) but I know the class is being called because of the start_el() function.

I've tried using <div> instead of <p> just to see if I can get those functions to do anything but so far no joy :(
–
fenfe1Nov 16 '12 at 8:18

The <div> and <p> shouldn't break the Walker but might result in invalid markup. You have $output = and not $output .= in your start_lvl. That could be causing trouble. Is that the complete Walker you posted?
–
s_ha_dum♦Nov 16 '12 at 14:22

Hi yeah I fixed the .= bit this is now the complete class (I removed the start_lvl() and end_lvl() functions to see if they made a difference) - pastebin.com/zfcBxHd8
–
fenfe1Nov 17 '12 at 9:05